Traffic lights for Excel

LorraineR

New Member
Joined
Apr 14, 2020
Messages
1
Office Version
  1. 2016
I wonder if you can assist a dinosaur with this please.
I am trying to input a traffic light system onto a spreadsheet where the green light will change to amber when the date is almost expired ie 14days, and the amber chances to red when it has expired.

any Formula I use the reaffirmation lights all go to green. Can you help?

ie
16/04/20 -require this to be amber
16/0320 - require this to be red
16/05/20 - require this to be green.

thank you so much
Lorraine
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
assuming the date is in column A
i have also added the formulas in columns B,C,D - so you can see the results, you see RED & Amber is both true - BUT the order you add to conditional formatting and stop if true will sort that out
ConFrmt-etaf.xlsx
ABCDEFGH
1GreenAMBERRED16/04/20 -require this to be amber
24/16/20FALSETRUEFALSE16/0320 - require this to be red
33/16/20FALSETRUETRUE16/05/20 - require this to be green.
45/16/20TRUEFALSEFALSE
5I am trying to input a traffic light system onto a spreadsheet where the green light will change to amber when the date is almost expired ie 14days, and the amber chances to red when it has expired.
6
7
8
9
10
11
Sheet1
Cell Formulas
RangeFormula
B2:B4B2=A2>DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())+14)
C2:C4C2=A2<DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())+14)
D2:D4D2=A2<TODAY()
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A:AExpression=AND(A1<>"",A1<TODAY())textNO
A:AExpression=AND(A1<>"",A1<DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())+14))textYES
A:AExpression=A1>DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())+14)textYES
 
Upvote 0

Forum statistics

Threads
1,214,877
Messages
6,122,051
Members
449,064
Latest member
scottdog129

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