Plot Area

2022

Board Regular
Joined
Jun 5, 2022
Messages
74
Office Version
  1. 2016
Platform
  1. Windows
I have a combo chart where the x axis on the left goes from 0-100.

But I want to format the plot area of the chart, so that anything above 80 in the plot area is green.

Anything between 50 and 79 in the plot area is orange.

And anything below 50 in the plot area is red.

I am not trying to format the indivual bars on lines in the chart - just the background, in different colours, depending on a threshold.

Does anyone know how to do this?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Would a gradient fill in the plot area work? If you need distinct cutoff points, it might be able to be done with VBA.

1698429757962.png


Doug
 
Upvote 0
Thanks for your response.

But I’ll distinct cut-offs….do you know how to do that?

So in the screenshot you’ve posted above, assuming the top two rows were 80 and above, I’d want to make that plot area / background, green…

Then the 4 rows below that would be orange.

And the rows at the bottom would be red….
 
Upvote 0
You would change the gradient fill from linear left or right to linear up or down. Play around with the gradients; to make more distinct cutoffs, try adding more gradient points and have the transitions close to each other in the areas where you want the color to change. 0-49 would be red-red, 49-51 would be red-orange, 51-79 would be orange-orange, 79-81 would be orange-red, 81-100 would be red-red...experiment with it.

Hope that helps,

Doug
 
Upvote 0
No problem, glad to help. For reference, the gradients I added were positioned at 49, 50, 79, 80, and 100.

Doug
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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