Comparing multiple rows with multiple details from one sheet to another.

cytochrome

New Member
Joined
Feb 8, 2017
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi here,
Need some help on an issue.
I have 2 spreadsheets, both have the same type of information. (Account Number/Transaction Number/Amount/Reference).
Is there macro that can look at each row on the first sheet, then find that on the entire second sheet. If all 4 details matched, then highlight that row on sheet1 and sheet2. If there is something on sheet1 and not on sheet2 and vice versa, then don't highlight those rows.
Hope that makes sense and thank you ahead for your help.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Not too difficult, if you could upload an image/XL2BB or gg drive link, to help us to see what the sheets look like
 
Upvote 0
Pls see sample pics. The 2nd row in Sheet1 is the same as the last row on Sheet2, hence both are highlighted.
 

Attachments

  • SHEET2.jpg
    SHEET2.jpg
    37.7 KB · Views: 7
  • SHEET1.png
    SHEET1.png
    25.4 KB · Views: 7
Upvote 0
It could be done with conditional formating.
Like this:
=COUNTIFS(SHEET2!$A:$A,$A1,SHEET2!$B:$B,$B1,SHEET2!$C:$C,$C1,SHEET2!$D:$D,$D1)>0
 
Upvote 0
Thanks. May be I'm new to this but where iwould I put in this formula? On sheet1 or sheet2? Or how can I get the rows to highlight?
Also, if I can get a macro it would be more efficient since the next time I compare another 2 sheets I don't have to retype.
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,031
Members
449,092
Latest member
ikke

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