Conditional Formatting

ZombieHuckFinn

New Member
Joined
Jul 25, 2011
Messages
7
I am trying to figure out how to set up a conditional formatting formula that will highlight values in a column if they are 179 days past TODAY(). I figured out how to do it for each individual column but there are 400+ entries and I assume a conditional formula will be the easiest route.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Welcome to the Board!

If you figured out how to do it on a single cell, you should be able to apply that logic to a whole range of cells/columns. Just use the formula option in Conditional Formatting.

Chip Pearson did a nice write-up on Conditional Formatting a few years ago: http://www.cpearson.com/excel/cformatting.htm

If you get stuck, post back to this thread.
 
Upvote 0
You can use conditional formatting with formula as under:
if date is in A column.
=TODAY()-$A1>=179
 
Upvote 0
So this is what I have for the formula:

=D2:D361-TODAY()>=180

I cannot figure out how to make it work for the range of cells. If the date is more than 180 days from TODAY() than I want it to format the cells that are >180 days within the Range D2:D361.
 
Upvote 0
Just highlight your whole range of cells, and write the the formula to work on the first cell in your range only. The rest of the formulas will adjust for all the other cells.

Likewise, you could just highlight and apply it to one cell, and use the Format Copier to copy the Conditonal Formatting to all other cells in your range.
 
Upvote 0
You're not teaching me to fish... you're throwing fish at me. When I use the two options I run into the problem I've had since the beginning of this post which is that with the conditional formatting the format painter and the other option you gave do not work. when I try those it highlights every single cell because it is using TODAY()-$D$2 as the only reference and not each cell in the range like it's supposed to.
 
Upvote 0

Select D2, go to 'Conditonal Formatting'' > 'New Rule' > 'Use a formula...' > and in the white box use:

=TODAY()-D2>=180

Choose a suitable format via the 'Format' button and click OK.

Hit OK again, then use this in the 'Applies to' white box:

=$D$2:$D$361

Click OK again.

Matty
 
Upvote 0
Yes. However this still runs into the issue of using only the date in D2. I need it to use D2, D3... all the way to D361 so that each time it tries to format the cell it references the cell it's formatting, not just D2.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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