conditional formatting referring to another cell

Johnexcel

New Member
Joined
Jul 20, 2010
Messages
3
Hi all,

I currently have one cell that has a format in which it's color turns red, yellow, or green based on whether the % of the budget remaining is below 33% of the original budget (red), between 33% and 66% (yellow), and above 66% (green). This is to easily point out whether that particular budget is running dry.

This cell works fine, but i want to apply the same color format to the company name, which is in a separate cell. I want the cell containing the company name to turn one of the 3 colors based on that original cell i pointed out earlier. Can this be done? It seems to work for green and red by using a formula as the reference, but not when i try to use =$C$22<$F$12<$C$21

C22 is 34%, F12 is the calculated % remaining out of the original budget, and C21 is 66%
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,344
Office Version
  1. 365
Platform
  1. Windows
Try using AND.

=AND($F$12>=$C$22, $F$12<=$C$21)

By the way you could actually do this without a formula by using cell references when you choose 'cell value' and between.

You would normally use a formula if you wanted to apply the formatting to more than one cell.

For example if you select F10:F30 and enter this formula:

=AND($F10>=$C$22, $F10<=$C$21)

That should appy the formatting to those cells.

You could also take things further by selecting whole rows or multiple columns if you want.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,627
Messages
5,838,440
Members
430,548
Latest member
hh_dh2001

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
Top