Aug 17 2023 05:21 AM
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
Aug 17 2023 05:51 AM
Select the cell or cells with the data validation drop-down.
Create a conditional formatting rule for each value of the drop-down list.
Aug 17 2023 06:48 AM
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!
Aug 17 2023 07:17 AM
SolutionLet'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.
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.
Aug 17 2023 08:08 AM
@HansVogelaar Thanks - I followed the instructions and get an error message saying "Enter a valid formula" - see photo
Aug 17 2023 08:17 AM
Aug 18 2023 12:19 AM
Aug 18 2023 03:15 AM
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.
Aug 18 2023 03:26 AM
@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.
Aug 18 2023 03:28 AM
Aug 18 2023 04:43 AM
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.
Apr 17 2024 06:30 AM
@HansVogelaar Thank you for sharing this response to the original question regarding Excel and coloured drop down lists.
Oct 09 2024 05:32 AM
Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?
Oct 09 2024 05:48 AM
Oct 09 2024 06:17 AM
I'm afraid a screenshot doesn't help. See my previous reply.
Oct 09 2024 09:21 AM
Oct 09 2024 11:16 AM
Thanks. Since you want to highlight cells on the 7 Oct 24 sheet, you should create the rule(s) on that sheet:
Aug 17 2023 07:17 AM
SolutionLet'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.
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.