excel formula to detect difference in range values from another sheet

RAYLWARD102

Well-known Member
Joined
May 27, 2010
Messages
529
let's say you have 2 sheets with identical data
Was thinking of a way, for tracking changes made in sheet.
Was thinking column z on source sheet could contain a formula that states something like =if(PreservedSheet!A1:V1 <> SourceSheet!A1:V1, "1","")
Any ideas how to make that formula work; I'm stumped
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
let's say you have 2 sheets with identical data
Was thinking of a way, for tracking changes made in sheet.
Was thinking column z on source sheet could contain a formula that states something like =if(PreservedSheet!A1:V1 <> SourceSheet!A1:V1, "1","")
Any ideas how to make that formula work; I'm stumped
What do you mean by "work"... assuming more than one cell in the whatever sheet "sheet" is supposed to refer to, what kind of output are you looking for?
 
Upvote 0
What do you mean by "work"... assuming more than one cell in the whatever sheet "sheet" is supposed to refer to, what kind of output are you looking for?

'Work' as in what syntax should I use to make the formula 'work' correctly.
I wanted to fill down this formula, for every row in an excel sheet, that detects a difference in corresponding row, in another sheet (same workbook)

So if sheet1!rangeA1:T1 is different from sheet2!rangeA1:T1 then sheet2!z1 = 1 else sheet2!z1 = ""
 
Last edited:
Upvote 0
'Work' as in what syntax should I use to make the formula 'work' correctly.
I wanted to fill down this formula, for every row in an excel sheet, that detects a difference in corresponding row, in another sheet (same workbook)

So if sheet1!rangeA1:T1 is different from sheet2!rangeA1:T1 then sheet2!z1 = 1 else sheet2!z1 = ""
In that case, your original formula minus the ranges is what you want. Put this in the first cell and copy it down to the last cell (the addresses will adjust automatically)...

=if(PreservedSheet!A1 <> SourceSheet!A1, "1","")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,044
Members
449,063
Latest member
ak94

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