Hi. I'm using Excel 2010. I've got two sheets where the same data is transcribed from paper and entered on both sheets. One person enters it on Sheet1, and a second person enters it on Sheet2. This is done to ensure accuracy and integrity of that data conversion to electronic format.
I have a conditional formatting formula set up in each sheet whereby Sheet1 looks at Sheet2 (and vice versa), and if anything is not the same on the opposite sheet, the cell turns yellow. Here is the conditional formatting formula in Sheet1: =NOT(EXACT(A1,'Sheet2'!A1)). And, I have the formula applying to =$A:$IV. The formula in Sheet 2 is similar, except it is pointing at Sheet1:=NOT(EXACT(A1,'Sheet1'!A1)).
This works beautifully as long as only data is entered. If by chance, however, columns or rows are deleted (which they oftentimes need to be during the reconcilliation process), then the formulas and/or the regions they apply to are thrown completely off. Additionally, if/when data is copied from one location to another, it changes the 'Applies to' area.
Is there a way within the Conditional Formatting to prevent all of this and apply the formula statically to the entire worksheet no matter what is copied/cut/pasted/deleted? I tried using static references (i.e., $A$1), but that didn't seem to work. I thought about VBA to reset the formula when the workbook is saved, and I believe that's possible, but each workbook actually has between 6 and 12 sheets (i.e., between 3 and 6 compares). If the formula was the same on each sheet, it would be very simple, but it changes based on the name of the sheet to the right or left of it.
Thoughts? Thank you for your consideration.
Frank
Bookmarks