Not the most efficient one, but by far the most obvious way to do it is:

>>> a = [1, 2, 3, 4, 5]
>>> b = [9, 8, 7, 6, 5]
>>> set(a) & set(b)
{5}

if order is significant you can do it with list comprehensions like this:

>>> [i for i, j in zip(a, b) if i == j]
[5]

(only works for equal-sized lists, which order-significance implies).

Answer from SilentGhost on Stack Overflow
๐ŸŒ
CompareTwoLists.com
comparetwolists.com
Compare two lists - easy online listdiff tool
Want to compare lists of Instagram followers, names, e-mails, domains, genes or something else? This tool shows you the unique and shared values in your two lists.
๐ŸŒ
DiffLists
difflists.com
DiffLists.com - compare lists online tool
Use our free online tool to compare lists from different sources. Itโ€™s quick and easy to do. Just paste 2 lists below (List 1 and List 2) and click on "Compare lists".
Discussions

How can I compare two lists in python and return matches - Stack Overflow
The question was interpreted in two different ways. If the goal is to find all the elements that are common to both lists (regardless of where they appear in the list), that is a list intersection. Otherwise, if the goal is to compare each pair of elements in the corresponding positions, then ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to compare two lists
u/shantown - Your post was submitted successfully. Once your problem is solved, reply to the answer(s) saying Solution Verified to close the thread. Follow the submission rules -- particularly 1 and 2. To fix the body, click edit. To fix your title, delete and re-post. Include your Excel version and all other relevant information Failing to follow these steps may result in your post being removed without warning. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
๐ŸŒ r/excel
11
5
January 19, 2022
How do I compare 2 sets of data and separate out only what does now appear in both lists
Good Afternoon and thanks in advance for any help anyone can give me. In Excel, I am trying to compare two lists of inventory and would like to take the newest list, and separate out only what does not appear on the previous list and vice versa. Forโ€ฆ More on learn.microsoft.com
๐ŸŒ learn.microsoft.com
4
44
Heres a website that actually lets you compare playlists. Finds similarities such as shared songs, artists, and albums all in a nice interface side by side
would be nice if there also was an option to only see the songs that are on one playlist but not on the other. More on reddit.com
๐ŸŒ r/spotify
25
116
August 30, 2021
๐ŸŒ
ListDiff
listdiff.com
ListDiff - Compare two lists to find list differences
This list comparison tool will perform SET Operations over lists of words, numbers etc with formatted results ยท Operations including: Set Intersections (AND), Set Unions (OR) and Set Differences between two lists
๐ŸŒ
Text Compare
textcompare.io โ€บ compare-two-lists
Compare Two Lists - Advance List Comparison Tool
Compare two list tool helps to compare two lists of items and identify the differences between them.
๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ how-to-compare-two-lists-in-python
How to Compare Two Lists in Python | DigitalOcean
July 22, 2025 - For comparing list contents regardless of order, collections.Counter is the most efficient and reliable method as it correctly handles duplicate elements. Leverage Pythonโ€™s set operations (&, -, ^) for a highly efficient way to find common elements, differences, or unique items between two lists.
Find elsewhere
๐ŸŒ
Red Stag Labs -
redstaglabs.com โ€บ home โ€บ tools โ€บ compare lists
Compare Two Lists Online - Free
April 18, 2025 - Simply paste your two lists into the toolโ€™s input boxes, choose comparison settings like case sensitivity or whitespace handling, and view the matched, unmatched, or duplicate entries.
๐ŸŒ
Excel Easy
excel-easy.com โ€บ examples โ€บ compare-two-lists.html
Compare Two Lists in Excel - Step by Step Tutorial
Explanation: =COUNTIF(secondList,A1) counts the number of teams in secondList that are equal to the team in cell A1. If COUNTIF(secondList,A1) = 0, the team in cell A1 is not in the second list.
๐ŸŒ
IPVoid
ipvoid.com โ€บ compare-two-lists
Compare Two Lists Online to Find Differences | IPVoid
This online list comparison tool can help you find differences between two lists. You can ccompare two lists, say List A and List B, to find out what items (lines) are found only in List B. In shorts, it extracts lines found in List B and not found in List A.
๐ŸŒ
Online Text Compare
onlinetextcompare.com โ€บ list
Compare two lists online
This tool lets you easily compare and find the differences between two lists of items.
๐ŸŒ
Compare Two Lists
compare.tartaglialab.com
Compare two lists - Tartaglia Lab
Compare two lists ยท (A remake of barc.wi.mit.edu/tools/compare)
๐ŸŒ
Comparelists
comparelists.net
Compare Two Lists Online - Instagram Analysis & List Diff Tool
Free online tool to compare lists and analyze Instagram followers. Compare 2 lists to find differences, matches, duplicates, and unique items. Perfect for data analysis, spreadsheet comparison, email lists, text comparison, and Instagram follower analysis.
๐ŸŒ
Molbiotools
molbiotools.com โ€บ listcompare.php
COMPARE LISTS - MULTIPLE LIST COMPARATOR - Venn diagram generator, free online tool to find set intersections
Multiple List Comparator is a free online tool made to compare two or more item lists, find the shared items (dataset intersections), and output both tabular and graphical results.
Top answer
1 of 4
21

Hi Rental,

Thanks for contacting us,

Yes, you can use Excel to compare two lists and identify what is unique in each list. Here are the steps:

Method 1: Using Formulas

  1. **Combine the Lists:**
    • Suppose your old inventory is in column A (A2:A100) and the current inventory is in column B (B2:B100).
    • In column C, combine both lists using the following formula in cell C2 and drag it down:
     =IFERROR(IF(MATCH(B2, $A$2:$A$100, 0), ""), B2)
     ```

This formula checks if the item in the current inventory list (column B) is found in the old inventory list (column A). If not, it returns the item; otherwise, it returns an empty string.

2. \*\*Filter the Unique Entries:\*\*
   - Filter column C to show only the non-empty cells. These are the items that are unique to the current inventory list.

3. \*\*Repeat the Process:\*\*
   - Repeat the process in column D but comparing the old inventory list to the current inventory list. Use a similar formula:

```excel
     =IFERROR(IF(MATCH(A2, $B$2:$B$100, 0), ""), A2)
     ```

Filter column D to show only the non-empty cells. These are the items that were present in the old inventory list but are not in the current one.

Method 2: Using Conditional Formatting

1. \*\*Highlight Differences:\*\*
   - Select the old inventory list (column A) and then the current inventory list (column B).
   - Go to the "Home" tab, click on "Conditional Formatting," and choose "Highlight Cells Rules" -> "Duplicate Values."
   - This will highlight the items that appear in both lists.

2. \*\*Filter Unique Entries:\*\*
   - Use the "Filter" option to filter out the highlighted cells in both columns. The remaining items in column A are those unique to the old inventory list, and the remaining items in column B are those unique to the current inventory list.

Choose the method that suits you best based on your preferences and requirements.

I hope this helps!

Regards,
Sola
2 of 4
2

=FILTER(new_list, ISERROR(MATCH(new_serial_column, old_serial_column, 0)))

and

=FILTER(old_list, ISERROR(MATCH(old_serial_column, new_serial_column, 0)))

๐ŸŒ
Cpa
cpa.live โ€บ tools โ€บ online list and column comparison tool
Compare Two Lists or Columns Online with CPA.LIVE
August 20, 2025 - The โ€œCompare Two Lists Onlineโ€ tool instantly detects duplicates, matches, and unique values across any data sets. Simply input two lists โ€” for example, offer IDs or email databases โ€” and get a full report showing overlaps and differences.
๐ŸŒ
List Compare Pro
listcomparepro.com
Compare Two Lists Online โ€“ Easy & Fast ListDiff Tool (Free)
Free online list comparison tool. Compare two lists online, find duplicates, check differences and matches instantly. Works as a list diff, list comparator, list checker, list matcher and list difference checker. Compare lists online โ€” no signup, no software, 100% private.
๐ŸŒ
Compare2lists
compare2lists.org
Compare 2 Lists Online for Differences - Free Lists Comparison Tool | Compare2Lists.org
Free online list comparison tool. Compare two lists to find differences, duplicates, or unique items. Fast, easy and accurate list comparison.
๐ŸŒ
Free Online Tools
imediacto.com โ€บ home โ€บ compare two lists ~ free list comparison tool
Compare Two Lists Online โ€“ Free List Comparison Tool
November 4, 2025 - This list comparison tool allows you to compare two lists (arrays) to be able you analyze the difference between the two lists.