Compare two spreadsheets, output all the differences

CypherBit

New Member
Joined
Jan 7, 2006
Messages
27
Office Version
  1. 2019
Platform
  1. Windows
We have two spreadsheets both containing a product (the same in both spreadsheets) and a serial number. We'd like to compare both of these, naturally based on product and output all the serial numbers that are found in spreadsheet 2 for one particular product. The product can be found in both spreadsheets multiple times.

Example, where I highlighted one particular product:

Spreadsheet 1:
1669147923117.png



Spreadsheet 2:
1669147950104.png


The result that we need is if the product exists in both spreadsheets, output all the serial numbers that are in spreadsheet 2 for that particular products. I tried VLOOKUP, but only get the first match, not all.

The issue is we accidentally lost the leading zeros (could be one or multiple, we don't know) in spreadsheet 1. Spreadsheet 2 contains the correct ones for that product. Additionally if the serial number in spreadsheet 1 is the same as in spreadsheet 2, we don't need that in the result (if that doesn't make it too hard).

We're using Excel 2019, but have access to O365 if that helps, but we'd like to use formulas only if at all possible.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Cannot manipulate data in pictures. Please reload your data to this site using XL2BB.
 
Upvote 0
My appologies, hope I did it correctly.

Zvezek1
ABCDEF
1Spreadsheet 1Spreadsheet 2
2
3Products/nProducts/n
44000010445570400001044597701191
540000104456025485174000010445972086111
64000010445688A10254000010445972086114A
7400001044569656957144000010445972086113A
8400001044569855968934000010445971086011A
9400001044569855968984000010445971086014A
1040000104457034000010445971086013A
114000010445720565165400001044596901240
124000010445724569933400001044596901413
1340000104459691030400001044596901376
1440000104459691326400001044596901327
1540000104459691327400001044596901326
1640000104459691376400001044596901030
174000010445971086013A400001044596901327
184000010445972086113A400001044596901327
1940000104459771191400001044596901376
2040000104460051170400001044596901376
2140000104460051305400001044596901413
2240000104460051321400001044596901413
2340000104460291409400001044596901413
24400001044604084154400001044596800582
254000010446063574113A
264000010446063574117A
274000010446064567388A
28400001044608284762
List1
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,543
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top