How to control the color of volume bar in a price-volume chart

macrofan

New Member
Joined
May 29, 2011
Messages
15
I have created <NOBR>a stock</NOBR> price-volume chart, in which the volume section is a bar chart. The color of the volume bar will be either green or red depending on the price increase or decrease relative to the previous close. My question is how to control the color of individual bars in corresponding to the changes in the price.

Thanks.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Use two separate data series, with separate areas of your worksheet providing data for each series.

For example, if A1:A10 contains your increase or decrease data....

In B1
Code:
=if(A1>0,A1,0)
and in C1
Code:
=if(A1<0,A1,0)
Copy B1 and C1 down to row 10.

Then set up a stacked bar chart with two data series, one driven by B1:B10 and one by C1:C10.
Make one series red, the other one green.
 
Upvote 0

Forum statistics

Threads
1,224,537
Messages
6,179,405
Members
452,911
Latest member
a_barila

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