Conditional Formatting Formula

Andrew0

New Member
Joined
Nov 13, 2022
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am trying to set up conditional formatting that highlights an entire row if any dates in cells of that row have elapsed.

I tried preparing the conditional formatting formula in regular cells first to ensure my true/false statements are working.

My problem comes if there are blank cells in the range, I can't seem to figure out how to ignore blanks in the formula. As you can see below, the formulas work until blanks are introduced, I feel I am missing something simple but can't seem to figure it out.

ConditionDate 1Date 2Date 3Date 4Date 5Date 6FormulaResult
No date elapsed
9/07/2023​
11/08/2023​
31/08/2023​
9/07/2023​
31/12/2023​
27/01/2023​
=OR($B2:$G2<TODAY())
FALSE​
1 date elapsed
9/07/2023​
9/07/2022
31/08/2023​
9/07/2023​
31/12/2023​
27/01/2023​
=OR($B4:$G4<TODAY())
TRUE​
No date elapsed with a blank
9/07/2023​
9/07/2023​
31/08/2023​
9/07/2023​
27/01/2023​
=OR($B3:$G3<TODAY())
TRUE​
1 date elapsed with a blank
9/07/2023​
9/07/2022
31/08/2023​
9/07/2023​
27/01/2023​
=OR($B5:$G5<TODAY())
TRUE​

Can anyone point me in the right direction?

Thank you in advance.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Could you provide a scenario where the formula above doesn't work?

M.
No problem, thank you for helping.

As per below, formula is returning 'true' for cells with elapsed date. However, it is also returning 'true' for rows with no dates in that range.

ConditionDate 1Date 2Date 3Date 4Date 5Date 6FormulaResult
No date elapsed
9/07/2023​
11/08/2023​
31/08/2023​
9/07/2023​
31/12/2023​
27/01/2023​
=MIN($B2:$G2)<TODAY()
FALSE​
1 date elapsed
9/07/2023​
9/07/2022​
31/08/2023​
9/07/2023​
31/12/2023​
27/01/2023​
=MIN($B3:$G3)<TODAY()
TRUE​
No date elapsed with a blank
9/07/2023​
9/07/2023​
31/08/2023​
9/07/2023​
27/01/2023​
=MIN($B4:$G4)<TODAY()
FALSE​
1 date elapsed with a blank
9/07/2023​
9/07/2022​
31/08/2023​
9/07/2023​
27/01/2023​
=MIN($B5:$G5)<TODAY()
TRUE​
No dates entered=MIN($B6:$G6)<TODAY()
TRUE​
 
Upvote 0
Try
=AND(COUNT($B2:$G2),MIN($B2:$G2)<TODAY())

M.
Worked! Thank you! I Have no idea how they work together but thank you!

1668393266391.png
 
Upvote 0
Thought I should share another solution someone gave me from somewhere else which also worked.

Excel Formula:
=OR(FILTER($A2:$G2,$A2:$G2>0)<TODAY())

Thanks again @Marcelo Branco
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,315
Members
452,634
Latest member
cpostell

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