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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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.
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,421
Members
448,961
Latest member
nzskater

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