Conditional Formatting Formula Help

Arts

Well-known Member
Joined
Sep 28, 2007
Messages
765
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi all

I am using conditional formatting so that if the date in a cell is "less than" todays date the cell turns red which works fine (rule being used screen shot below)

1649844022009.png


The issue I am having is that if the cell is left blank it remains red. Is there anyway I can add a rule with the date rule that if the cell is blank it remains blank (no colour) but if a date entered less than today then turn red.

In short if cell is blank = "No fill".
If cell has date < today turn red.
If cell has date > today remain white.

Many thanks
Arts
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
i would setup a formula
AND( cell < today() , cell <> "" )

Book2
A
24/1/22
34/2/22
44/3/22
54/4/22
64/5/22
74/6/22
84/7/22
94/8/22
104/9/22
114/10/22
124/11/22
134/12/22
144/13/22
154/14/22
164/15/22
174/16/22
184/17/22
194/18/22
204/19/22
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A20Expression=AND(A2<TODAY(), A2<>"")textNO


for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
A2:A100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=AND(A2 <> "" , A2 < today() )

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK
 
Upvote 0
Solution
In conditional formatting, New Rule, Use a formula & use
Excel Formula:
=AND(B1<>"",B1<TODAY())
Change the B1 to the 1st cell in the applies to range
 
Upvote 0
Thank you both for your responses, works exactly as I had hoped!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,841
Members
449,051
Latest member
excelquestion515

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