Link to home
Start Free TrialLog in
Avatar of desmondwkng
desmondwkngFlag for Hong Kong

asked on

Matching the number in two excel file

Hi Experts,

I've two excel files (File A and File B) that have order no.(both on colum A) which are similar but not exact.

Now, I would like to know what order number listed on File A is missing from File B and vice versa.

thanks for your help in advance.


Desmond
Avatar of Andrew Collette
Andrew Collette
Flag of United States of America image

Why are they on different shees?

Open both files, create named ranges, and do a vlookup.
would you like an example of what that formula would look like?
Avatar of Steve
Open both files and Perform a MATCH (VLOOKUP would be slow and overkill)

So in book 1 (row 1 in this case) you would have a formula...
=MATCH(A1,OrderNumbers Book 2 Sheet A:A, 0)
The 0 is nescessary to show exact matches only.
Then any rows which are #N/A are missing from the second workbook.
Reverse the procedure to find those in second workbook missing from first.
Avatar of desmondwkng

ASKER

Dear Barman

Thanks, it's perfect,

But if I would like to show that the matched number as "Y" and the unmatched as "N", how should I modify the formula?


Desmond
Dear Andy,

There are two different files is because if come from different report and we would like to compare the result.

regards,

Desmond
ASKER CERTIFIED SOLUTION
Avatar of Steve
Steve
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks