Compare 2 sets of 3 columns

Blakowt

New Member
Joined
Mar 19, 2009
Messages
1
I am looking to compare 2 sets of 3 columns. Info would be something like this:

First set
Fslk AZ TA
KKsl AZ AT
ZLKK BA TA

Second set
KKsl AZ TA
Fslk AZ TA
ZLkk BQ TA

What I am trying to find are the instances that something in the second or third column has changed. The first column is the key and I'm and trying to figure out if the current 2nd and 3rd column has changed from a previous version. Also, I need the changes highlighted or in a different column.
 
Last edited:

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Use a VLOOKUP to pull the data from the second sheet into columns D & E of the first sheet.

Then compare column B with D by inserting in column F the function =IF(B1=D1,"No Change", "Changed") and fill down.

Then compare column C with E by inserting in column G the function =IF(C1=D1,"No Change", "Changed") and fill down.

By filtering on "Changed" in F or G - you will see where the data is different.
 
Upvote 0
Assuming 1st set of data in A1:C3, 2nd set of data in A5:C7

This in D5:

=IF(VLOOKUP(A5,$A$1:$C$3,2,0)=B5,"OK","2nd column changed")

This in E5:

=IF(VLOOKUP(A5,$A$1:$C$3,3,0)=C5,"OK","3rd column changed")


Then, Conditional formatting on D5 and E5 with the condition that:

Cell Value not equal to ="OK"

and format to whatever colour you like.

HTH
 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,387
Members
448,956
Latest member
JPav

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