Expiration Date in Excel Coloring

huja

New Member
Joined
Jan 9, 2022
Messages
7
Office Version
  1. 2021
Platform
  1. Windows
Hi.

I'm new to this forum and english is not native language so bear with me.

I really try to figure out an easy way in excel to show me when a deadline is approaching.

So let's say I have a deadline 2022-01-31, and I type 2022-01-31 in a cell.
I want excel to turn the cell red when it reaches 2022-01-31 and keep showing red after 2022-01-31.
I also want excel to turn the cell yellow when it is 14 days left until deadline.
When it is more than 14 days left I want the cell to be green.

How do I do this in Excel? I have searched everywhere and I fail every time.

I know I can use "conditional formatting" but I do not know what formula to apply to make it work.

Thanks in advance.
 
I don't understand what you mean by revere it.

Here's a list of dates which should cover all scenarios. Please identify the colour required for each:

For the sake of argument lets say today, 11-jan-22, is the deadline date, so:
From row 7 to row 12 (date 11-jan-22 to 02-feb-22 and later): Color RED.

From row 6 to row 4 (date 10-jan-22 to 28-dec-21): Color YELLOW.

From row 3 to row 2 (date 27-dec-21 to 20-dec-21 and earlier): Color GREEN.
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
For the sake of argument lets say today, 11-jan-22, is the deadline date, so:
From row 7 to row 12 (date 11-jan-22 to 02-feb-22 and later): Color RED.

From row 6 to row 4 (date 10-jan-22 to 28-dec-21): Color YELLOW.

From row 3 to row 2 (date 27-dec-21 to 20-dec-21 and earlier): Color GREEN.
Then this should be what you want.

Huja.xlsx
A
1Date
220-Dec-21
327-Dec-21
428-Dec-21
529-Dec-21
610-Jan-22
711-Jan-22
812-Jan-22
924-Jan-22
1025-Jan-22
1126-Jan-22
1202-Feb-22
13
2nd
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A20Expression=AND($A2<>"", $A2<TODAY()-14)textNO
A2:A20Expression=AND($A2<>"",$A2<TODAY(),$A2>=TODAY()-14)textNO
A2:A20Expression=$A2>=TODAY()textNO
 
Upvote 0
Solution

Forum statistics

Threads
1,215,063
Messages
6,122,928
Members
449,094
Latest member
teemeren

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