Conditional Formatting Gradient

phenley

New Member
Joined
Jun 23, 2017
Messages
9
Hello,

I have a table with data in columns C and D. In Column E, I have the difference between columns C and D, and then F is the percentage difference. I would like to have a two color gradient to color the high percentages, but only if the difference in column F is greater than 1. This is what the table looks like.

12/31/20163/31/2017DifferencePercentage Difference
17417310.5747%
77076550.6494%
68467950.7310%
49449130.6073%
24024000.0000%

<tbody>
</tbody>

So, I would like the gradient to go across the cells in the percentage difference column only if the difference is greater than 1.

Is there a way to do this?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Well, 2.5% would be a high percentage in my case, however I wanted to know if I can do a two color gradient across the entire column given the difference was greater than 1.
 
Upvote 0
@phenley, do you mean across the entire row?

You really should limit the number of cells formatted to only the ones in which you actually have data, in any case.

And as for the condition itself, you want to format if Column E for that row is >1 (regardless of the value in Column F)?
 
Upvote 0
@ErikTyler,

I'm not sure about you meaning across the entire row, but I want the conditional formatting in column F.

But yes, I want it to format column F if column E is greater than 1.
 
Upvote 0
@phenley ...

1. Select Column F (all)

2. From the Home tab, choose "Conditional Formatting" > "New Rule" > "Use a formula to determine which cells to format."

3. Enter this formula in the field below "Format values where this formula is true": =AND(ISNUMBER(E1),E1>1)

4. Click the "Format..." button.

5. Open the "Fill" tab.

6. Click the "Fill Effects..." button below the color chooser.

7. Click the radio button beside "Two colors" and select your two colors for the gradient, under "Color 1" and "Color 2."

8. Under "Shading Styles," choose an option (probably "Diagonal Up" or "Diagonal Down").

9. Click "OK" ... "OK" ... "OK" to accept and apply the CF rule.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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