Conditional formatting - dates older than 14 days

roo181

New Member
Joined
Jul 23, 2013
Messages
23
Office Version
  1. 365
Platform
  1. Windows
Hi,

I would like to be able to highlight cells in Column A if they are older than 14 days and the item hasn't been received. Refer A5
I've already highlighted cells in red that are older than 14 days, but eventually everything will turn red.
I took care of the blank cells in Column A so they wouldn't be highlighted red. (A6)

What does the conditional formatting need to be for this?

Warranty.xlsx
AB
1DATEDATE RECEIVED FROM CUSTOMER
21/06/20229/06/2022
311/06/2022
420/05/2022
520/05/20221/06/2022
6
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2Expression="if(today()>b2+14)"textNO
A2:A6Cellcontains a blank value textNO
A2:A6Expression=A2<TODAY()-14textNO


Thanks for your help
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
No need for an IF statement, nor multiple rules in this case.
Book1
AB
1DATEDATE RECEIVED FROM CUSTOMER
21/06/20229/06/2022
311/06/2022
420/05/2022
520/05/20221/06/2022
618/05/2022
728/05/2022
8
9
1031/05/2022
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A200Expression=AND($A2<>"";$A2<TODAY()-14)textNO
 
Upvote 0
No need for an IF statement, nor multiple rules in this case.
Book1
AB
1DATEDATE RECEIVED FROM CUSTOMER
21/06/20229/06/2022
311/06/2022
420/05/2022
520/05/20221/06/2022
618/05/2022
728/05/2022
8
9
1031/05/2022
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A200Expression=AND($A2<>"";$A2<TODAY()-14)textNO
If the item has been received by having a date in column B, I would like the cell in column A to not be red.
 
Upvote 0
Then maybe
Excel Formula:
=AND($A2<>"",$A2<TODAY()-14,$B2<>"")
 
Upvote 0
Sorry goof-up, it must obviously be
Excel Formula:
=AND($A2<>"",$A2<TODAY()-14,$B2="")
Book1
AB
1DATEDATE RECEIVED FROM CUSTOMER
21/06/20229/06/2022
311/06/2022
420/05/2022
520/05/20221/06/2022
618/05/2022
728/05/2022
8
9
1031/05/2022
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A10Expression=AND($A2<>"";$A2<TODAY()-14;$B2="")textNO
 
Upvote 0
Solution
Sorry goof-up, it must obviously be
Excel Formula:
=AND($A2<>"",$A2<TODAY()-14,$B2="")
Book1
AB
1DATEDATE RECEIVED FROM CUSTOMER
21/06/20229/06/2022
311/06/2022
420/05/2022
520/05/20221/06/2022
618/05/2022
728/05/2022
8
9
1031/05/2022
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A10Expression=AND($A2<>"";$A2<TODAY()-14;$B2="")textNO

Awesome, thanks for your help
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,632
Members
452,661
Latest member
Nonhle

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