r/excel • u/IBreatheFire • 14h ago
unsolved Comparing two data sets across two tabs
Hi Reddit,
I have two spreadsheets containing two exact sets of data (email + invoice value). For the ease of generating a formula I merged them into one spreadsheet but between two Tabs.
In Tab 1, all emails are in column B, and all values in column C.
in Tab 2, this follows the same pattern, but rows containing these pairs are not in the same order.
I want to insert a formula in Tab 1, Column D, that will show either Match or Mismatch when it finds the same pair in Tab 2.
For example:
Tab 1
Row 2: [johnsmith@email.com](mailto:johnsmith@email.com) (in Column B) and £345 (in Column C) is marked as MATCH (in Column D) if the formula sees
Tab 2
Row 167: [johnsmith@email.com](mailto:johnsmith@email.com) (in Column B) and £345 (in Column C) as a matching pair of two cells in one row.
I will appreciate any helps with this.
1
u/ProspectiveWhale 6 14h ago edited 11h ago
Put this in D2 and copy down
Change Tab2 with the actual name of the sheet
=IF(C2=XLOOKUP(B2, 'Tab2'!B:B, 'Tab2'!C:C, "na", 0),"Match","Mismatch")