Excel Marco - Series Line colouring

johnball96

New Member
Joined
Jun 18, 2011
Messages
3
Unfortunately i have never done anything like this before so please treat me like an idiot!

I have this series of data which i have simply entered into a line graph. However, if possible, i would like to write a piece of code or so that the line changes colour and is red when the value is positive and blue when negative.

Jan-98 2.5
Feb-98 2.788
Mar-98 2.765
Apr-98 2.67
May-98 2.148
Jun-98 1.14
Jul-98 0.251
Aug-98 -0.419
Sep-98 -0.661
Oct-98 -0.845
Nov-98 -1.153
Dec-98 -0.976
Jan-99 -1.109
Feb-99 -1.219
Mar-99 -1.043
Apr-99 -1.026
May-99 -0.727
Jun-99 -0.434
Jul-99 -0.492
Aug-99 -0.786
Sep-99 -0.996
Oct-99 -1.006
Nov-99 -1.065
Dec-99 -1.196

i am using excel 2010.

Thank you in advance
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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