I'm working on correcting these large two excel sheets. I need the sequence of entries to match up and I need to make sure they both have all of the same entries.
To check for this I created two extra supporter sheets to show me the work that needs to be done. One that shows me if the order of entries match up and one to show me which ones are not entered in the other sheet.
I created the first one with a simple side-by-side column comparison. Column A references the entries in sheet1 and Column B references sheet2. And I have Column C simply doing a match comparison between the two. Showing True or False.
The second supporter sheet follows the side-by-side comparison as the first and finds discrepancies via conditional formatting, coloring in a cell if it does not match any of the other entries in the opposite column (this was done with two rules).
The issue is that when I update either sheet1 or sheet2 by inserting a new row on one of the sheets my references in my supporter sheets no longer align. Some show the #Ref! error though some simply show and incremented reference. (i.e. $A7 when I still want $A6).
My formula for Column A and Column B are simply ="sheet1"$A6
and ="sheet2"$B4
.
It might be noteworthy that sheet1 and sheet2 are actually different files.
Is there any way to lock in my references? So they always reference that particular cell? Even when I insert a new one in the worksheets they reference?
="sheet1"$A6
becomes say="Sheet1"$A7
when inserting a new row, you want to useIndirect()
. i.e.=Indirect("'Sheet1'!$A$7")
I believe.