Compare 1 column where column B matches

csimpson24

New Member
Joined
Feb 22, 2018
Messages
22
Hi all,

So I have a very large spreadsheet which contains all of our parts and part descriptions. It was merge between old data and new data. I am needing to see which part's descriptions have change from then and now.

When B is a match (part number), compare D (Description) and write match or mismatch in E for both matching part number rows.

Any help would be appreciated.

Thank you,
Chris
 
Last edited:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Separate the old and new into tables if they're not already (by sorting then cut/paste) and something like:


Excel 2010
ABCDEF
1NumberDescriptionMatch?NumberDescription
234654Left Rotor AxleTRUE34654Left Rotor Axle
323654Twin Die CastFALSE23654Twin Die Plate
Sheet8
Cell Formulas
RangeFormula
C2=VLOOKUP(A2,$E$2:$F$3,2,0)=B2
 
Upvote 0
Thank you SheetSpread, however, there will be several thousand parts in the new data that have been added since the old data...
 
Upvote 0
Is there a label of old and new? Or a date you can sort on? If not, add a cumulative count:


Excel 2010
AB
7346541
8236541
9346542
10236542
Sheet8
Cell Formulas
RangeFormula
B7=COUNTIF($A$7:A7,A7)
 
Last edited:
Upvote 0
Sorry, I got pulled off of this for a few days but now back on it. Is there not a way, maybe in VBA, to script it? So starting at the beginning of the data row to row, get the first part number, find if that same part number exists in another row, compare the descriptions, and write Match or Mismatch in column D?
 
Upvote 0
Vlookup is the easiest way, here's one that doesn't require splitting the data:


Excel 2010
ABC
1NumberDescriptionMatch?
234654Left Rotor AxleTRUE
323654Twin Die CastFALSE
434654Left Rotor AxleTRUE
523654Twin Die PlateFALSE
6196543Sparking CableTRUE
76655434DistributorTRUE
8543423Glow PlugFALSE
9196543Sparking CableTRUE
106655434DistributorTRUE
11543423Spark PlugFALSE
Sheet4
Cell Formulas
RangeFormula
C2=B2=IFERROR(VLOOKUP(A2,$A$1:$B1,2,0),"")&IFERROR(VLOOKUP(A2,$A3:$B111,2,0),"")
 
Upvote 0
Could it handle if it does not find another match to the part number? Meaning, the part number only exists once in the data?
 
Upvote 0
Here's my first result. Should be TRUE???

[TABLE="width: 316"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Part[/TD]
[TD]Description[/TD]
[TD]Match?[/TD]
[/TR]
[TR]
[TD]30021.02[/TD]
[TD]ROUND HOT ROLLED 1/4"[/TD]
[TD="align: center"]FALSE[/TD]
[/TR]
[TR]
[TD]30021.02 [/TD]
[TD]ROUND HOT ROLLED 1/4" [/TD]
[TD="align: center"]FALSE[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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