Share via

How do I compare 2 sets of data and separate out only what does now appear in both lists

Anonymous
2023-11-15T19:33:47+00:00

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 example: an old inventory list from Sep 1st, and a current Inventory list. I would like to be able to sort out what does not appear on the Sept 1st list to see what was has been added, as well as sort out what no longer appears on the current list to tell me what has been removed. I can easily see what is on both lists by combining them and then sorting by serial #'s, and any duplicates existed prior to Sept 1st and still are in the system. Is there a way to compare the lists and see what is unique on each one?

Thanks again for any help available.

Microsoft 365 and Office | Excel | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Anonymous
    2023-11-15T22:07:37+00:00

    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
    
    20+ people found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points MVP Volunteer Moderator
    2023-11-15T22:15:46+00:00

    =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)))

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-11-15T23:54:12+00:00
    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2023-11-15T22:26:01+00:00

    Thank You! Highlighting the difference using conditional formatting is the perfect way to go for what I need.

    0 comments No comments