trying to have cell color fill based on multiple values

C-Rad

New Member
Joined
Jun 30, 2011
Messages
5
Greetings, I am trying to have a cell in a worksheet fill a certain color based on the value of a cell in another worksheet but still in the same workbook.

Example: If cell A1 (sheet1) equals 1 then cell B1 (sheet2) is green, but if cell A1 (sheet1) equals 2 then cell B1 (sheet2) is yellow and if cell A1 (sheet1) equals 3 then cell B1 (sheet2) is Red

I have tried the conditional formating yet that seems to only work based on one value unless I am missing something.

I certainly hope this is possible?? Thank you for taking the time reading!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hello and welcome to the board

Conditional Formatting is the way to do this

What version of Excel are you using?
 
Upvote 0
You will need to define Sheet1!A1 as a named range, you can then used this name in the conditional formatting "Use a formula to determine which cells to format.

So

if you define the name of sheet1!a1 as sao1.

In conditional formatting

=sao1=1, format as green

next rule

sao1=2, format as yellow

etc
 
Upvote 0
Just a little clarification on the "You will need to define Sheet1!A1 as a named range" How do I give it a name range? The sheets do have specific names to them.

The sheet that needs the formating is called Store Check Q2.11 and the sheet that has the actual numbered value is called Action Results.
 
Upvote 0
Select cell sheet1!a1.

On the Formulas tab, there should be (about midway) the "Defined Names" section. Select the Define Name option. This then give cell sheet1!a1 a specific name , which can be subsequently used in your conditional formatting formula.

If you cant get this from my explanation (cos' I'm not v.good at explaining) send me a pm with your e-mail, and I'll send you a worked example
 
Upvote 0
Steve, I was not able to get it. I figured out how to define it, but yet, for some reason, the format still wouldn't work. I shot you a PM, hope to get an email back. Thanks
 
Upvote 0
Ok... after trying a few more, I am coming to the realization that its my conditional formatting now. When I type in a value of 1 in the cell, I get yellow, if I type 2 I get green, and when I type 3 I also get green in the cell of my other worksheet. I am not able to match up and get 1= green, 2=yellow, 3=red. Any suggestions? The rule type I am using is "Cells that Only Contain:" and applying a rule for each color.

Suggestions?
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,911
Members
452,949
Latest member
beartooth91

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