Sep 01 2024 05:07 AM
HELLO
CAN ANYONE TELL ME HOW TO COMPARE TWO COLUMNS OF DATA (ONE LONG, ONE SHORT) AND REVEAL WHAT IS MISSING FROM THE SHORT LIST PLEASE?
Sep 01 2024 07:10 AM
Let's say you have data in Sheet1!B2:B10000 and in Sheet2!F2:F500
Enter the word MISSING in C1 on Sheet1, and enter the following formula in C2 on Sheet1:
=ISERROR(XMATCH(B2, Sheet1!$F$2:$F$500))
Fill down from C2.
This will return TRUE for the values that are not in the short list, FALSE for the rest.
You can sort or filter on the new column.
Sep 01 2024 08:08 AM
Sep 01 2024 11:15 AM
Could you create a stripped-down copy of the workbook demonstrating the problem (without sensitive information) and make it available through one of the websites that let you upload and share a file, such as OneDrive, Google Drive, FileDropper or DropBox. Then post a link to the uploaded and shared file here.
(Please turn off Caps Lock)
Sep 01 2024 12:57 PM
Sep 01 2024 01:41 PM
Sep 01 2024 02:09 PM
The link doesn't work for me, you will have to allow others to view and download the file.
Sep 02 2024 01:16 AM
Sep 02 2024 01:25 AM
Sep 02 2024 01:34 AM
Sep 02 2024 03:02 AM
The Dropbox link worked. If you want to return the 'missing' values to a separate range, enter the following formula in - for example - D1:
=FILKTER(A1:A197218, ISERROR(XMATCH(A1:A197218, B1:B188657)))
Sep 02 2024 03:44 AM
Sep 02 2024 04:20 AM
Here is the file with the result in column D.
Can you provide a few examples of cells that should NOT have been listed in column D?
Sep 02 2024 06:41 AM
@paulcalderwood@paulcalderwood
This formula detects any value that does not occur twice (or more) in the combined columns.
= UNIQUE(VSTACK(columnA, columnB),,TRUE)
Sep 02 2024 08:22 AM
It appears that there are entries in the shorter list B that are not in A. One way of eliminating them from the result would be to modify the formula to read
= UNIQUE(VSTACK(columnA, columnB, columnB),,TRUE)
Sep 02 2024 09:59 AM