Match Rows

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
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,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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