How to change cells colours when an expiry date is coming to an end

Buggy1967

New Member
Joined
May 12, 2023
Messages
11
Office Version
  1. 365
Platform
  1. Windows
I wonder if anyone can help me I have a spreadsheet, that I need to have cells that change colour when dates are close.

Please see below. What I have been trying to do is to take the date in cell Eas a start date and make cell F change colour to green for the next 80 days and then turn amber for the 10 days prior to the date in cell F. then depending if the date in cell e has been updated the cell will either revert to green or turn red. All help with this will be very much appreciated.

Thank you in advance.

A​
B​
C​
D​
E​
F​
G​
H​
Support WorkerResident NameAddressTSD (Tenancy Start Date)Risk Assessment Completion Date
Risk Assessment Review Date
Support Plan Completion Date Support Plan Review date
TraceyJordon ChewRm 1, 208 Nechells Park Road, Nechells, Birmingham, B7 5SP
09/02/2023​
01/01/202301/04/202301/01/202301/04/2023
TraceyLyndon YoungRm 2, 208 Nechells Park Road, Nechells, Birmingham, B7 5SP
20/12/2021​
TraceyArnold GasanaRm 3, 208 Nechells Park Road, Nechells, Birmingham, B7 5SP
10/02/2023​
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABCDEFGH
1Support WorkerResident NameAddressTSD (Tenancy Start Date)Risk Assessment Completion DateRisk Assessment Review DateSupport Plan Completion DateSupport Plan Review date
2TraceyJordon ChewRm 1, 208 Nechells Park Road, Nechells, Birmingham, B7 5SP09/02/202301/01/202301/04/202301/01/202301/04/2023
3TraceyLyndon YoungRm 2, 208 Nechells Park Road, Nechells, Birmingham, B7 5SP20/12/202101/01/202315/05/2023
4TraceyArnold GasanaRm 3, 208 Nechells Park Road, Nechells, Birmingham, B7 5SP10/02/202301/05/2023
5
6
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:F7Expression=E2>=TODAY()-80textNO
F2:F7Expression=F2>TODAY()-10textNO
F2:F7Expression=AND(F2<>"",F2<TODAY())textNO
 
Upvote 1
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABCDEFGH
1Support WorkerResident NameAddressTSD (Tenancy Start Date)Risk Assessment Completion DateRisk Assessment Review DateSupport Plan Completion DateSupport Plan Review date
2TraceyJordon ChewRm 1, 208 Nechells Park Road, Nechells, Birmingham, B7 5SP09/02/202301/01/202301/04/202301/01/202301/04/2023
3TraceyLyndon YoungRm 2, 208 Nechells Park Road, Nechells, Birmingham, B7 5SP20/12/202101/01/202315/05/2023
4TraceyArnold GasanaRm 3, 208 Nechells Park Road, Nechells, Birmingham, B7 5SP10/02/202301/05/2023
5
6
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:F7Expression=E2>=TODAY()-80textNO
F2:F7Expression=F2>TODAY()-10textNO
F2:F7Expression=AND(F2<>"",F2<TODAY())textNO
Thank you for the information, but I must be doing something wrong. i cant get the formula to work in my spreadsheet.. ive tried adding the information as a new conditional formatt, but it does not work. what am I doing worng?
 
Upvote 0
Can you post what you've done using the Xl2BB add-in.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Can you post what you've done using the Xl2BB add-in.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
I've not added the add in
 
Upvote 0
it wont let me add the extension. it says that it cant be added in protected view. but my excel sheet is not in protected view mode
 
Upvote 0
Did you copy the file into a trusted location? Such as the normal add-in folder?
 
Upvote 0
sorry to be a pain but not yet. My excel skills only go to a basic level
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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