ICON traffic light system

Danielle1

New Member
Joined
Feb 5, 2015
Messages
11
Hi All,

Hoping someone can help with a conditional formatting question.
[TABLE="width: 751"]
<colgroup><col></colgroup><tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD]If the date completed is less than or equal to the date due, get the icon tick[/TD]
[/TR]
[TR]
[TD]If the date completed is greater than the due date get the amber exclamation mark [/TD]
[/TR]
[TR]
[TD]if a date of zero in inputted, get the red cross[/TD]
[/TR]
</tbody>[/TABLE]

Column 1 - Activity Title
Column 2 - Due Date
Column 3 - Date Completed

Thanks in advance!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
OK, there may be simpler ways, but this is how I would do it.

There are several steps to this.

1) Find the character you want to use for each icon.
2) Write a formula to handle the logic you want to apply, and include those characters in the formula.
3) Format the cell into the correct font, so that the icon appears as expected.
4) Apply conditional formating to the cell, to apply the colour.

1) For the cross and tick icons, you could use the Wingdings font, but that does not seem to have an exclamation mark symbol, so you might have to pick a different symbol.
Wingdings contains several tick and cross symbols - one of the tick symbol appears as
ü
in many other fonts - you can copy and paste the symbol from your pc's character map application if you're not sure about this.
And the corresponding cross symbol appears as
û
Note that these may look very similar but they are actually different.

2) The formula could be something like this, assuming that completion date is in A1, and due date is in B1.
=if(A1=0,"û",if(A1< = B1,"ü","ZZZ"))
Replace ZZZ with whatever character you choose to use for the exclamation mark.

3) Apply the wingdings font to the cell.

4) Apply conditional formating.
I'll keep that for a separate post if you don't mind, let's see how you get on with the first 3 parts.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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