Conditional Format Reference Ranges Shift Wildly

%3CLINGO-SUB%20id%3D%22lingo-sub-3108120%22%20slang%3D%22en-US%22%3EConditional%20Format%20Reference%20Ranges%20Shift%20Wildly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3108120%22%20slang%3D%22en-US%22%3E%3CP%3EVery%20often%20when%20I%20create%20a%20new%20conditional%20format%20by%20formula%2C%20I%20will%20hit%20%22ok%22%20and%20close%20the%20window%2C%20expecting%20the%20rule%20to%20be%20applied%2C%20but%20it%20does%20not%20take%20effect%20in%20the%20ranges%20I%20specified.%20I%20now%20know%20to%20immediately%20go%20back%20to%20the%20rule%20I%20wrote%2C%20where%20I%20will%20observe%20that%20the%20relative%20reference%20ranges%20I%20put%20in%20the%20formula%20are%20now%20shifted%20by%20many%20rows%20and%20columns.%20I%20can't%20find%20any%20literature%20online%20to%20explain%20why%20this%20happens.%20It's%20not%20a%20huge%20inconvenience%2C%20but%20I%20just%20wonder%20why%20it%20happens%20so%20consistently.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20out%20there%20encountered%20the%20same%20thing%3F%20Do%20you%20know%20why%20it%20happens%20%2F%20how%20to%20prevent%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUPDATE%3A%20I%20played%20around%20with%20it%20a%20bit%2C%20and%20it%20seems%20that%20it%20only%20shifts%20the%20references%20when%20I%20update%20the%20effective%20range.%20As%20in%2C%20at%20first%20I%20just%20had%20a%20random%20cell%20selected%20when%20I%20wrote%20the%20rule%2C%20then%20I%20pasted%20the%20effective%20range%20into%20that%20rule%20from%20another%20rule%20along%20the%20same%20lines.%20Only%20then%20does%20the%20reference%20range%20shoot%20out%20into%20oblivion%20and%20need%20to%20be%20fixed.%20Still%20not%20sure%20why...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3108120%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3108240%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Format%20Reference%20Ranges%20Shift%20Wildly%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3108240%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1281115%22%20target%3D%22_blank%22%3E%40tjryan35%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20want%20to%20create%20a%20conditional%20formatting%20rule%20for%20a%20range%2C%20select%20that%20range%20and%20make%20sure%20that%20the%20first%20cell%20in%20the%20range%20(i.e.%20the%20top%20left%20cell)%20is%20the%20active%20cell%20within%20the%20selection.%3C%2FP%3E%0A%3CP%3EAnd%20make%20sure%20that%20the%20conditional%20formatting%20formula%20is%20correct%20with%20respect%20to%20the%20active%20cell.%3C%2FP%3E%0A%3CP%3EFor%20example%2C%20if%20you%20want%20to%20highlight%20a%20row%20in%20the%20range%20A2%3AK100%20if%20the%20cell%20in%20column%20D%20contains%20Sunday%2C%20select%20A2%3AK100%20and%20make%20sure%20that%20A2%20(or%20at%20least%20a%20cell%20in%20row%202)%20is%20the%20active%20cell%20in%20the%20selection.%3C%2FP%3E%0A%3CP%3EAnd%20use%20the%20formula%20%3D%24D2%3D%22Sunday%22.%20It%20is%20essential%20that%20you%20use%202%20as%20row%20number%20in%20the%20formula%3B%20this%20corresponds%20to%20the%20row%20number%20of%20the%20active%20cell.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Very often when I create a new conditional format by formula, I will hit "ok" and close the window, expecting the rule to be applied, but it does not take effect in the ranges I specified. I now know to immediately go back to the rule I wrote, where I will observe that the relative reference ranges I put in the formula are now shifted by many rows and columns. I can't find any literature online to explain why this happens. It's not a huge inconvenience, but I just wonder why it happens so consistently. 

 

Has anyone out there encountered the same thing? Do you know why it happens / how to prevent it?

 

UPDATE: I played around with it a bit, and it seems that it only shifts the references when I update the effective range. As in, at first I just had a random cell selected when I wrote the rule, then I pasted the effective range into that rule from another rule along the same lines. Only then does the reference range shoot out into oblivion and need to be fixed. Still not sure why...

 

Thanks!

2 Replies

@tjryan35 

If you want to create a conditional formatting rule for a range, select that range and make sure that the first cell in the range (i.e. the top left cell) is the active cell within the selection.

And make sure that the conditional formatting formula is correct with respect to the active cell.

For example, if you want to highlight a row in the range A2:K100 if the cell in column D contains Sunday, select A2:K100 and make sure that A2 (or at least a cell in row 2) is the active cell in the selection.

And use the formula =$D2="Sunday". It is essential that you use 2 as row number in the formula; this corresponds to the row number of the active cell.

Thanks a lot for your reply. So it sounds like I was kind of on the right track.. the issue is that I often don't have a cell in the to-be effective range selected when I create the rule, so when I change the effective range, it changes the reference I put in the rule formula.