How can I force Relative Cell References into a Conditional Formatting Forumual in Excel
January 30, 2012 3:50 PM Subscribe
In Excel I have 2 columns with dates in them. D1:D20 Start Date G1:G20 End Date. I want to highlight the cell in the range G1:G20 if the date is more than 14 days form the date in D1:D20. Obvious answer is conditional formatting, but I can't seem to create a formula with relative cell references.
I tried using conditional formatting, but it seems to be forcing absolute cell references (even though it doesn't look like it should) so that every cell in G1:G20 is comparing itself to D1. How can I set this up so that G3 compares itself to D3?
I tried using conditional formatting, but it seems to be forcing absolute cell references (even though it doesn't look like it should) so that every cell in G1:G20 is comparing itself to D1. How can I set this up so that G3 compares itself to D3?
You should be able to delete the $s on the conditional formatting. Which version of Excel are you using?
posted by jeather at 3:52 PM on January 30, 2012 [1 favorite]
posted by jeather at 3:52 PM on January 30, 2012 [1 favorite]
Did you see this question I asked? It was about conditional formatting, and some answers were very helpful.
posted by jph at 4:04 PM on January 30, 2012
posted by jph at 4:04 PM on January 30, 2012
Best answer: You have to use the INDIRECT() function within the conditional formatting settings.
Like so:
=(INDIRECT("G"&ROW())-INDIRECT("D"&ROW()))>=15
posted by mullacc at 4:06 PM on January 30, 2012 [1 favorite]
Like so:
=(INDIRECT("G"&ROW())-INDIRECT("D"&ROW()))>=15
posted by mullacc at 4:06 PM on January 30, 2012 [1 favorite]
Response by poster: Thanks mullacc - that was the magic I was looking for.
posted by willnot at 4:17 PM on January 30, 2012
posted by willnot at 4:17 PM on January 30, 2012
This thread is closed to new comments.
posted by brainmouse at 3:51 PM on January 30, 2012 [1 favorite]