Format cells in column only if once cell equals it and another cell equals "Gold"

kelseyRahenkamp

New Member
Joined
Sep 9, 2014
Messages
1
I want to format cells based on the value of two other cells. I have a spreadsheet that has company names in one column with their status (silver or gold) in another column. On another sheet, I will list companies out (just certain ones, not all of them) and I want the color to change to green if their level in the other spreadsheet equals gold.

The status will change over time so I will need the second sheet to update when the status on the first sheet for that company changes.

Right now, I have this formula in my conditional formula rule: =AND(Sheet1!$A$2:$A$439=$D$4,Sheet1!$I$2:$I$439="Gold")=TRUE. Simplified, here it is: =AND("company name in sheet 1"="company name in sheet two","status in sheet 1"="Gold")=TRUE

This is not working. What do I need to do to get this to work?
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Could you do something like, making a 2nd column to house the status of the company (whether silver/gold) and based on that change the color?

I tend to try to keep conditional formatting to the same sheet.

For instance on your status of the different companies sheet, where the companies and their status are listed:

Excel 2010
AB
1Company NameStatus
2NikeSilver
3Wal-MartGold
4SearsSilver
5JCPenneyGold
6Academy SportsGold
7BassProGold
8WalGreensSilver
9MacysGold
10TargetSilver

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



Your formatted sheet.

In the cells B2:B10:
=IFERROR(INDEX(Sheet1!$B$2:$B$10,MATCH(Sheet2!A2,Sheet1!$A$2:$A$10,0)),"")

Conditional Formatting Rule:

Applies to:
=A2:A10

Format:
Fill: Green

Formula:
=B2:B10="Gold"



Excel 2010
AB
1Company List:
2Academy Sports
Gold
3BassProGold
4SearsSilver
5NikeSilver
6JCPenneyGold
7NikeSilver
8JCPenneyGold
9Academy SportsGold
10BassProGold

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

Cells A2, A3, A6, A8, A9, A10 are all green.



You could then hide Column B on Sheet2 if you don't want to see that.
 
Upvote 0

Forum statistics

Threads
1,222,032
Messages
6,163,509
Members
451,839
Latest member
HonestZed

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