Conditional Formatting using TODAY()

smarkel

New Member
Joined
Feb 15, 2023
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I am trying to create a formula that will turn a cell yellow if today's date falls between two dates and red if today's date falls later than another date. I'm not even sure if this formula exists.

Example: We want the cell to turn yellow if today's date is between 8/1/2023 and 9/30/2023. We want the cell to turn red if today's date falls after 10/1/2023. The purpose is to alert us when we are due/overdue complete a periodic inspection on equipment.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Try this:
mr excel questions 5.xlsm
CDEF
2BDateEDateTodayDate
308/01/202309/30/202307/31/2023FALSE
408/01/202309/30/202308/01/2023FALSE
508/01/202309/30/202309/15/2023FALSE
608/01/202309/30/202309/30/2023FALSE
708/01/202309/30/202310/01/2023TRUE
Sheet4
Cell Formulas
RangeFormula
F3:F7F3=E3>=DATE(2023,10,1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E3:E7Expression=E3>=DATE(2023,10,1)textNO
E3:E7Expression=AND(E3>=C3,D3<=D3)textNO
 
Upvote 0
Instead of using E3 in the formula you would use the TODAY() function.
Excel Formula:
=TODAY()>=DATE(2023,10,1)
Excel Formula:
=AND(TODAY()>=C3,TODAY()<=D3)
 
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,721
Members
449,093
Latest member
Mnur

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