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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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
A
B
C
D
1
Players
2
DavidPeter
3
Peter
4
Henry
5
Janet
Sheet: List

when Henry is selected in D2

Excel 2016 (Windows) 32 bit
A
B
C
D
1
Players
2
DavidHenry
3
Peter
4
Henry
5
Janet
Sheet: List
 
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,214,522
Messages
6,120,022
Members
448,939
Latest member
Leon Leenders

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