conditional formatting with dates

kelvin_9

Active Member
Joined
Mar 6, 2015
Messages
466
Office Version
  1. 2019
Greeting to All,

I was thinking can i use 1 formula in conditional formatting to highlights my request? dates in below range
less than 30days = yellow
less than 60days = blue
less than 90days = red

a6:e9
a14:e17
a22:e25
a30:e33
a38:e41
a46:e49
a54:e57
a62:e65
a70:e73
a78:e81
a86:e89
a94:e97
a102:e105
a110:e113

thank you very much for your answering
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
i have downloaded and posted in XL2BB for other members

BUT i dont understand the colours used for the 3 dates shown
Nor do i understand Why its now 14 days
the orginal question said
less than 30days = yellow
less than 60days = blue
less than 90days = red
And as some members has asked - Is this overdue or in future

I would need a lot more explanation to help further - with some example dates for ALL colours and why

test.xlsm
ABCDE
1less than 14 daysless than 30 daysless than 60
2
3codecodecodecodecode
4descriptiondescriptiondescriptiondescriptiondescription
5consumableconsumableconsumableconsumableconsumable
6January 10, 2025January 3, 2025July 7, 2025
7February 1, 2025
8
9
10
11codecodecodecodecode
12descriptiondescriptiondescriptiondescriptiondescription
13consumableconsumableconsumableconsumableconsumable
14
15
16
17
18
19codecodecodecodecode
20descriptiondescriptiondescriptiondescriptiondescription
21consumableconsumableconsumableconsumableconsumable
22
23
24
25
Sheet1
 
Upvote 0
i have downloaded and posted in XL2BB for other members

BUT i dont understand the colours used for the 3 dates shown
Nor do i understand Why its now 14 days
the orginal question said

And as some members has asked - Is this overdue or in future

I would need a lot more explanation to help further - with some example dates for ALL colours and why

test.xlsm
ABCDE
1less than 14 daysless than 30 daysless than 60
2
3codecodecodecodecode
4descriptiondescriptiondescriptiondescriptiondescription
5consumableconsumableconsumableconsumableconsumable
6January 10, 2025January 3, 2025July 7, 2025
7February 1, 2025
8
9
10
11codecodecodecodecode
12descriptiondescriptiondescriptiondescriptiondescription
13consumableconsumableconsumableconsumableconsumable
14
15
16
17
18
19codecodecodecodecode
20descriptiondescriptiondescriptiondescriptiondescription
21consumableconsumableconsumableconsumableconsumable
22
23
24
25
Sheet1
thank you very much for your answering, etaf

you know what, no matter 30, 60, 90 days or 14, 30, 60 days, just a try i gave a shot
however, i found like what i said, it's not good if i change to another days instead of 30, 60, 90 in original
i just curious and i thought it's the same if i change any "days" of it

btw this is used to calculate a consumable expiry date running expired which i need to be aware and take necessary action
so i would like to use conditional formatting to label a coming expired cosumable it easily

i'm really sorry if i caused any misunderstanding to you all again and again
test-consumables.xlsm
ABCDE
6January 8, 2025January 8, 2025March 9, 2025
7February 7, 2025February 7, 2025January 8, 2025March 9, 2025
8March 9, 2025February 7, 2025January 8, 2025March 9, 2025
9February 7, 2025January 8, 2025
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A6:E9Expression=AND(A6<>"", A6>TODAY()+60,A6<=TODAY()+90)textNO
A6:E9Expression=AND(A6<>"", A6>TODAY()+30,A6<=TODAY()+60)textYES
A6:E9Expression=AND(A6<>"", A6>TODAY(),A6<=TODAY()+30)textNO
 
Upvote 0
OK,
so the conditional formatting has been setup for the future dates
61-90 days
31-60 days
1-30 days

Does that now work OK for you
if not,
whats the issue/error
 
Upvote 0
you know what, no matter 30, 60, 90 days or 14, 30, 60 days, just a try i gave a shot
however, i found like what i said, it's not good if i change to another days instead of 30, 60, 90 in original
i just curious and i thought it's the same if i change any "days" of it
Hi Kelvin,

When you change the number of days you want the CFR's to Conditionally Format dates (number values), you just need to keep in mind that's it's most often going to be either of the following:
  • TODAY + DAYS
  • TODAY - DAYS
From there you'll want to place them in the Order of priority in the Conditional Formatting Rules Manager (CFRM).
You usually want them in Low to High order. Like your 30, 60, 90 days.
When you're confident it works for a single column, you can then expand your Applies To range in the CFRM to something like A6:E110. I think that's what your ranges added up to.

Best regards,
 
Upvote 0

Forum statistics

Threads
1,225,648
Messages
6,186,174
Members
453,339
Latest member
Stu61

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