Conditional formatting question (I think)

mark hansen

Well-known Member
Joined
Mar 6, 2006
Messages
534
Office Version
  1. 2016
Platform
  1. Windows
in a cell I have to following formula

=TODAY()-Y12&" Days Ago" and I get a display that says "3 days ago"

I want the cell to turn red when the number is greater than say 12 --- so for any statement that says 12 days ago (or more) the cell will turn red.

I tried conditional formatting by changing it to formula and entering today() - y12 >12 but couldn't get it work.

What am I getting wrong?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

jabba9

New Member
Joined
May 18, 2004
Messages
42
in conditional formatting:

change to "formula is" and type =TODAY()-Y12>12

you might have to go back and remove all quotes (sometimes excel adds quotes, which can screw up conditional formatting)

Mike
 

mark hansen

Well-known Member
Joined
Mar 6, 2006
Messages
534
Office Version
  1. 2016
Platform
  1. Windows
Perfect!! The quotes were there too.

Thanks.
 

Forum statistics

Threads
1,176,125
Messages
5,901,528
Members
434,899
Latest member
powerappsjoker99

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
Top