Conditional Formatting Help Needed

la2

New Member
Joined
Aug 23, 2022
Messages
1
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hello,
I am trying to do conditional formatting for the following

Expiration Date Nearing - 60 Days Out (Color cell Blue)
Expiration Date Nearing - 30 Days Out (Color Cell Yellow)
Expiration Date Reached - 0 days out and beyond (Color Cell Red)
 

Attachments

  • xcel.jpg
    xcel.jpg
    220.1 KB · Views: 8

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
can not really see the image very well

setup 3 rules

=AND($L2<>"",$L2<=TODAY())
=AND($L2<>"",$L2<=TODAY()+30)
=AND($L2<>"",$L2<=TODAY()+60)

put in that order and use stop if true

Book3
ABCDEFGHIJKL
28/18/22
38/21/22
48/24/22
58/27/22
68/30/22
79/2/22
89/5/22
99/8/22
109/11/22
119/14/22
129/17/22
139/20/22
149/23/22
159/26/22
169/29/22
1710/2/22
1810/5/22
1910/8/22
2010/11/22
2110/14/22
2210/17/22
2310/20/22
2410/23/22
2510/26/22
2610/29/22
2711/1/22
2811/4/22
2911/7/22
3011/10/22
3111/13/22
3211/16/22
3311/19/22
3411/22/22
3511/25/22
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:L35Expression=AND($L2<>"",$L2<=TODAY())textYES
A2:L35Expression=AND($L2<>"",$L2<=TODAY()+30)textYES
A2:L35Expression=AND($L2<>"",$L2<=TODAY()+60)textYES


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

Highlight applicable range >>
A2:L100 - 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($L2<>"",$L2<=TODAY())

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK

Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,454
Messages
6,124,931
Members
449,195
Latest member
Stevenciu

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