| Home | “Given two lists, clicking ‘Go’ removes trailing blanks, sorts, and removes duplicates. It also combines the lists and compares them for items in common and for items not in common. The combining feature could be thought of as a ‘sort / merge’ function.” |

List A (Culled and sorted when “Go” is clicked)
List B (Culled and sorted when “Go” is clicked)
Duplicate items removed from “List A”
Duplicate items removed from “List B”
Items only in “List A”
Items only in “List B”
Items common to both “List A” and “List B” (Intersection)
“List A” and “List B” combined (Union)

Utility: Compare / Combine Two Lists

(Tested using IE6, IE7 and Firefox 3.5)

Click the button and then the button above to see an example of how this web page works.

Given two lists, clicking removes trailing blanks, sorts, and removes duplicates. It also combines the lists and compares them for items in common and for items not in common. The combining feature could be thought of as a “sort / merge” function.

1. Click .

2. “Copy/Paste” your own two lists into the first two text boxes.

3. Click .

4. “Copy/paste” from the bottom six text boxes as needed.

NOTE: This web page is also useful for…

…sorting and eliminating duplicates from a single list. Simply leave the “List B” text box empty.

…finding differences between two almost identical text files, computer programs or web pages.

NOTE: Despite the small size of the text boxes above, this web page is capable of handling very large lists! 1000 items/list: no problemo! :-)

NOTE: One thing that you may find annoying about this web page is that if you simply want to scroll through one of the lists in the top two text boxes, it is falsely assumed that you are about to make modifications, so the output (bottom six) text boxes are cleared. To reverse this, simply click .

NOTE: This web page was created using Notepad. Except for the background image file the keyboard command JavaScript file and the font / color data JavaScript file, it is completely self contained, and the absence of these three files will not cause any problems. Please feel free to save it to your hard drive using “File/Save as….” Double-click on the newly created “LLBest - Utility - Compare-Combine Two Lists” icon (“CompareTwoLists” icon for Firefox), and make it one of your “Favorites.” It will work perfectly even when you are no longer connected to the Internet, or, heaven forbid, when this web page is no longer available!

Questions, comments and suggestions are welcome.
Howard Charles Best ()

| Home | THIS WEB PAGE URL: http://LLBest.com/CompareTwoLists.htm |