Overdue date

SaraWitch

Active Member
Joined
Sep 29, 2015
Messages
378
Office Version
  1. 365
Platform
  1. Windows
Hello peeps,

I have a start date in A2, a due date in B2 and a completion date in C2. The due date automatically updates when a completion date is entered in C2 (as this is a recurring annual review).

I would like the row to turn red if there is a due date that has passed and C2 is either blank and today's date is greater than due date or there is a date last completed (date in C2) and today's date is greater than (new) due date.

I started trying to do a formula for conditional formatting on just the dates in A2 to C2, but couldn't work it out. I then thought that by adding a status column I could more easily apply conditional formatting but now I'm tying myself up in knots to get the correct status returning (example below)!

I hope this makes sense and I would be really grateful if anyone can help me out... Ta very muchly! :)


¦ MrExcel Queries.xlsm
ABCDEFG
1Start dateReview due dateDate completedStatusStatus should be
201/06/202201/06/202501/06/2024FALSEPendingWould like row to turn red if there is a due date that has passed and C2 is either blank and today's date is greater than due date or there is a date last completed (date in C2) and today's date is greater than (new) due date
301/06/202331/05/2024FALSEOverdue
401/06/202201/06/202402/06/2023FALSEOverdue
Due Date
Cell Formulas
RangeFormula
B2:B4B2=IF(A2="","",IF(C2="",A2+365,C2+365))
D2:D4D2=IF($A2="","",AND(C2="",TODAY()<B2,"Pending,AND(c2="",TODAY(0>B2,""Overdue",AND(C2>0,TODAY()>B2,"Overdue")))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:G4Expression=$D2="Overdue"textNO
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Just noticed some rookie mistakes in D2 formula (missing Pending quotation and an incorrect TODAY function (zero instead of bracket))! So I corrected, but still didn't work. I've tried changing slightly, but still not working:
¦ MrExcel Queries.xlsm
ABCDEFG
1Start dateReview due dateDate completedStatusStatus should be
201/06/202201/06/202501/06/2024FALSEPendingWould like row to turn red if there is a due date that has passed and C2 is either blank and today's date is greater than due date or there is a date last completed (date in C2) and today's date is greater than (new) due date
301/06/202331/05/2024FALSEOverdue
401/06/202201/06/202402/06/2023FALSEOverdue
Due Date
Cell Formulas
RangeFormula
B2:B4B2=IF(A2="","",IF(C2="",A2+365,C2+365))
D2:D4D2=IF($A2="","",AND(C2="",B2>TODAY(),"Pending",AND(C2="",B2<TODAY(),"Overdue",AND(C2>0,B2<TODAY(),"Overdue"))))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:G4Expression=$D2="Overdue"textNO
 
Upvote 0
is this just if the DUE Date in column B is earlier than today()
=$B2<today()
to stop blanks highlighting as that seen as a date 0/1/1900
then
=AND( $B2<>"", $B2<today() )
Book1
ABCDEF
1Start dateReview due dateDate completedStatusStatus should be
26/1/226/1/256/1/24FALSEPending
36/1/235/31/24FALSEOverdue
46/1/226/1/246/2/23FALSEOverdue
Sheet1
Cell Formulas
RangeFormula
B2:B4B2=IF(A2="","",IF(C2="",A2+365,C2+365))
D2:D4D2=IF($A2="","",AND(C2="",TODAY()<B2,"Pending,AND(c2="",TODAY(0>B2,""Overdue",AND(C2>0,TODAY()>B2,"Overdue")))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:E11Expression=AND($B2<>"", $B2<TODAY())textNO



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

Highlight applicable range >>
A2:E10000 - 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( $B2<>"", $B2<today() )

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK
 
Upvote 0
Solution
Oh my goodness, I was overthinking it!!!

Thank you so much, @etaf, this is perfect! :biggrin:
 
Upvote 0

Forum statistics

Threads
1,224,746
Messages
6,180,704
Members
452,994
Latest member
Janick

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