date formula in conditional formatting not behaving as expected

bh24524

Active Member
Joined
Dec 11, 2008
Messages
365
Office Version
  1. 365
  2. 2007
I have conditional formatting set up to light cells up in column I if the following are true:
Today's Date is less than 6 (so the 1st thru the 5th of any month)
column H has a value in it
column I has a value in it

Based on that, I put in the following formula:

=AND(H2<>"",I2<>"",DAY(TODAY()<6))

The formula doesn't work unless I change it to:

=AND(H2<>"",I2<>"",DAY(TODAY()>6))
1722515345386.png


But that reads if the day in today's date is greater than 6. Today is August 1 and that is not greater than August 6, so I am just wondering what I am missing here? Was it incorrect to use Day(today()) in the formula?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,223,886
Messages
6,175,194
Members
452,616
Latest member
intern444

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