SOLVED

Color coded dropdown lists

Copper Contributor

I'm using Microsoft Excel for Microsoft 365 MSO (Version 2306 Build 16.0.16529.20226) 64-bit

 

I have a status report for which I'd like to use a dropdown list for different statuses and have the associated colour in the cell where the status is selected. 

I am able to create the dropdown list and use it, just the colour coding doesn't come across with it.

I have a file of the status report but can't see an option to attach it...

Thanks

11 Replies

@charlemjamSage 

Select the cell or cells with the data validation drop-down.

Create a conditional formatting rule for each value of the drop-down list.

Thanks @HansVogelaar for the quick response. I don't use Excel very often, how do I do the create part you've mentioned please? Feel free to point me to existing instructions!

best response confirmed by charlemjamSage (Copper Contributor)
Solution

@charlemjamSage 

Let's say your drop-down list has options One, Two and Three, and you want to color the cell red, yellow or green depending on the selected item.

Select the cell or cells with the drop-down.

 

On the home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Format only cells that contain'.
Leave the first drop down set to 'Cell Value'.
Select 'equal to' from the second drop down.
In the box next to it, enter the formula

="One"

Click Format...
Activate the Fill tab.
Select red as highlight color.
Click OK, then click OK again.

HansVogelaar_0-1692281820480.png

Repeat these steps, but with ="Two" as formula and yellow as fill color.

Repeat them again, with ="Three" as formula and green as fill color.

@HansVogelaar Thanks - I followed the instructions and get an error message saying "Enter a valid formula" - see photo

Capture.PNG

@charlemjamSage 

You should use double quotes instead of single quotes:

 

="Not started"

Thanks so much - it works!! Really appreciate your clarity and patience 🙂 (why is there a limit on how many messages can be posted in 14,400 seconds??? Where is that number plucked from?!) Is there another place for unlimited instant messaging where you can also get help/advice? I was unable to post this yesterday as a result, sorry

@charlemjamSage 

Most forums have a limit on how frequently you can post, to deter spammers. But 14,400 seconds is 4 hours; I have no idea why it is so long.

I'm one of the administrators of Eileen's Lounge. The minimum interval between posts there is 1 minute.

@charlemjamSage , @HansVogelaar 

That's really strange. Did you see what is the actual limit, 1 reply, 10 replies, etc.? Based on our experience here replies could go one by one.

Yes, it said I'd reached the maximum 8 posts allowed in 14,400 seconds

@charlemjamSage 

I see, thank you. Most probably that depends on user profile, one limit for Occasional Visitor and other limits for higher ranks. have no answer, you may clarify that on https://techcommunity.microsoft.com/t5/community-lounge/ct-p/Community-Info-Center.

Anyway, from my point of view 8 message in 4 hours is quite strong.

@HansVogelaar Thank you for sharing this response to the original question regarding Excel and coloured drop down lists. 

1 best response

Accepted Solutions
best response confirmed by charlemjamSage (Copper Contributor)
Solution

@charlemjamSage 

Let's say your drop-down list has options One, Two and Three, and you want to color the cell red, yellow or green depending on the selected item.

Select the cell or cells with the drop-down.

 

On the home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Format only cells that contain'.
Leave the first drop down set to 'Cell Value'.
Select 'equal to' from the second drop down.
In the box next to it, enter the formula

="One"

Click Format...
Activate the Fill tab.
Select red as highlight color.
Click OK, then click OK again.

HansVogelaar_0-1692281820480.png

Repeat these steps, but with ="Two" as formula and yellow as fill color.

Repeat them again, with ="Three" as formula and green as fill color.

View solution in original post