Keep color coded name in dropdown list

John_Whin

Board Regular
Joined
Feb 26, 2013
Messages
78
Platform
  1. Windows
I've got a List with player names and whether they shoot right or left (NHL). The players names who shoot right are colored red. When I use the dropdown list I want the red color to remain with the name.

How do I accomplish this?

Thanks
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
When I use the dropdown list I want the red color to remain with the name.
I assume this means that once a name has been chosen from the drop-down then it will show the appropriate colour.

If so, try Conditional Formatting like this.
A1:A3 all have Data validation and Conditional Formatting as shown for A1

Excel Workbook
ABCDE
1TonyPlayerLR
2ToddTomL
3TimTedR
4TimR
5ToddL
6TonyR
Match Colour
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A11. / Formula is =VLOOKUP(A1,$D$2:$E$6,2,0)="R"Abc
D21. / Formula is =E2="R"Abc
#VALUE!
 
Upvote 0
Or subtly alter the names so that Excel can distinguish RIGHT shooters
- a trailing space is invisible to the viewer

Below I added a space AFTER the name of each RIGHT shooter "Peter " "Janet " but did not for LEFT shooters "David" "Henry"

Determine conditional formatting in D2 using this formula =RIGHT(D2,1)=" "
( same method could be applied to source list A2:A5 )

when Peter is selected in D2

Excel 2016 (Windows) 32 bit
[Table="width:, class:head"][tr=bgcolor:#E0E0F0][th] [/th][th]
A
[/th][th]
B
[/th][th]
C
[/th][th]
D
[/th][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
1
[/td][td]Players[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
2
[/td][td]David[/td][td][/td][td][/td][td]Peter [/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
3
[/td][td]Peter [/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
4
[/td][td]Henry[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
5
[/td][td]Janet [/td][td][/td][td][/td][td][/td][/tr]
[/table]
[Table="width:, class:grid"][tr][td]Sheet: List[/td][/tr][/table]

when Henry is selected in D2

Excel 2016 (Windows) 32 bit
[Table="width:, class:head"][tr=bgcolor:#E0E0F0][th] [/th][th]
A
[/th][th]
B
[/th][th]
C
[/th][th]
D
[/th][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
1
[/td][td]Players[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
2
[/td][td]David[/td][td][/td][td][/td][td]Henry[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
3
[/td][td]Peter [/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
4
[/td][td]Henry[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
5
[/td][td]Janet [/td][td][/td][td][/td][td][/td][/tr]
[/table]
[Table="width:, class:grid"][tr][td]Sheet: List[/td][/tr][/table]
 
Upvote 0
Strangely under Font tab when I try to conditional format a color it always goes back to 'Automatic'. I can format 'Bold' and it does that. The only available option under Font is Font style; Color, Size etc is greyed out. I can go to Fill and Background Color the whole cell properly. Color does not work for Border options either. I really would prefer to just color the text.

Thanks
 
Last edited by a moderator:
Upvote 0
Strangely under Font tab when I try to conditional format a color it always goes back to 'Automatic'. I can format 'Bold' and it does that. The only available option under Font is Font style; Color, Size etc is greyed out. I can go to Fill and Background Color the whole cell properly. Color does not work for Border options either. I really would prefer to just color the text.

Thanks
It is possible that your worksheet has become corrupted. First thing I would suggest is to start a new workbook and set up a tiny sample like in this thread and see if it works there.
 
Upvote 0
the test worked on another sheet in the workbook, then I tried on the initial sheet. For some reason it worked fine that time.
Thanks Peter_SSs
 
Upvote 0
the test worked on another sheet in the workbook, then I tried on the initial sheet. For some reason it worked fine that time.
Thanks Peter_SSs
You're welcome. Glad it all resolved in the end. :)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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