Conditional Formatting- Drop-Down List Reference for single cell

LaurenCely

New Member
Joined
Oct 1, 2015
Messages
2
I'm having trouble formatting a single cell. The cell has an index match formula in it based on a drop down list:

In cell F1 --> I want it to show RED for Janet but GREEN for Ben or Adam, depending on which name I pick in the drop-down list (cell E1 is a drop down list).

Right now, I have an Index Match Formula in the cell, and the conditional formatting has to match whichever name is chosen....Can this be done?

A
B
C
D
E
F
1
ID
Test1
Test2
Color
Janet
67
2
Ben
89
84
Green
3
Adam
92
96
Green
4
Janet
56
67
Red

<tbody>
</tbody>
 
Last edited:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi

Conditional formatting

Use a formula to determine which cells format

=OR($E$1=$A2,$E$1=$A3) Green Applies to =$F$1

=$E$1=$A4 red Applies to =$F$1
 
Upvote 0
Hi bro

just next to the selector create a helper cell with a Boolean condition based on your preference then set a conditional formatting on the score based on your thresholds


CDEFGHIJKL
1
2
3idresultSelectorHelper
4Ben84Janey671
5Adam96
6Janey67
7
8
9

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
I4=INDEX($D$4:$E$6,MATCH(H4,$D$4:$D$6,0),2)
K4=--(I4<70)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Hi

Conditional formatting

Use a formula to determine which cells format

=OR($E$1=$A2,$E$1=$A3) Green Applies to =$F$1

=$E$1=$A4 red Applies to =$F$1

The table I gave is just an example-- my actual Data Table is A1:AC119. I could have the cell = a range, but it would be tedious to select all the cells with just "Green", and also be inaccurate if that should change later to a "Red".

I think the syntax needs to be something along the lines of :

If cells range A1:A119="Green" (in any cell) for the TABLE A1:AC119,THEN color cell $F$1 Green. OTHERWISE, color cell $F$1 Red.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,525
Messages
6,160,329
Members
451,637
Latest member
hvp2262

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