Match Rows

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
highlight the first row,
hold CTRL
highlight the second row

hit F5

click special

select ROW DIFFERENCES

excel has now highlighted any non matches.... select a red cell background color so that all highlighted cells are turned red for easy finding.
 
Upvote 0
Danzon

Thanks for the quick reply.

I have 2 worksheets with several hundred lines each. I am comparing each sheet line by line and just need to know if there are any differences, not necessarily what those differences may be. I was hoping for something in a third sheet like "=if(SheetA!A1:Z1 = SheetB!A1:Z1,0,1)" for each row.
 
Upvote 0
are they all numbers ??? if so you can use,

{=IF(MAX(Sheet1!A1:Z1-Sheet2!A1:Z1)=0,MIN(Sheet1!A1:Z1-Sheet2!A1:Z1))}

Array formula > confirm with CTRL SHIFT ENTER


any returned value other than 0 means they do not match up perfectly
 
Last edited:
Upvote 0
how about this...


{=IF(SUM(--(Sheet1!A1:Z1=Sheet2!A1:Z1)) < COUNTA(Sheet1!A1:Z1)+COUNTBLANK(Sheet1!A1:Z1),"PROBLEM","OK")}
<?XML:NAMESPACE PREFIX = COUNTA(Sheet1!A1 /><COUNTA(Sheet1!A1:Z1)+COUNTBLANK(Sheet1!A1:Z1),"PROBLEM","OK")}< p>
again an ARRAY confirmed with CTRL > SHIFT > ENTER


let me know
</COUNTA(Sheet1!A1:Z1)+COUNTBLANK(Sheet1!A1:Z1),"PROBLEM","OK")}<>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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