PC Review


Reply
Thread Tools Rate Thread

Change line in Chart

 
 
=?Utf-8?B?SmVyb2VuTQ==?=
Guest
Posts: n/a
 
      4th Oct 2005
Hello,

I have the following question:
I have an Excel chart with a target line. In some cases I want to have the
target line as a dotted line, and sometines as a continuous line. Somewhere
on the worksheet is a cell wich determines if it must be a dotted or
continous line. Is it possible to make the chart in such way that if I
change the cell for continuous/dotted, the line in the chart is updated
automatically (from dotted to continuous or the other way).

Thanks in advance,

JeroenM.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      4th Oct 2005
If you want it dotted in some places and a line in others, you'll need to
have a series for the dotted line and a series for the solid line.

Good luck.

"JeroenM" wrote:

> Hello,
>
> I have the following question:
> I have an Excel chart with a target line. In some cases I want to have the
> target line as a dotted line, and sometines as a continuous line. Somewhere
> on the worksheet is a cell wich determines if it must be a dotted or
> continous line. Is it possible to make the chart in such way that if I
> change the cell for continuous/dotted, the line in the chart is updated
> automatically (from dotted to continuous or the other way).
>
> Thanks in advance,
>
> JeroenM.

 
Reply With Quote
 
=?Utf-8?B?SmVyb2VuTQ==?=
Guest
Posts: n/a
 
      5th Oct 2005
OK, but how can I make sure that the chart "knows" which line it has to draw,
a dotted or continuous one? This depends on the value of a cell somewhere in
the worksheet.

JeroenM.

"Barb Reinhardt" schreef:

> If you want it dotted in some places and a line in others, you'll need to
> have a series for the dotted line and a series for the solid line.
>
> Good luck.
>
> "JeroenM" wrote:
>
> > Hello,
> >
> > I have the following question:
> > I have an Excel chart with a target line. In some cases I want to have the
> > target line as a dotted line, and sometines as a continuous line. Somewhere
> > on the worksheet is a cell wich determines if it must be a dotted or
> > continous line. Is it possible to make the chart in such way that if I
> > change the cell for continuous/dotted, the line in the chart is updated
> > automatically (from dotted to continuous or the other way).
> >
> > Thanks in advance,
> >
> > JeroenM.

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      7th Oct 2005
Set up the data like this:

X Y Y dashed Y solid

The X and Y data are in the first two columns, then formulas in the next
two columns look back at the indicator cell to determine whether the
values should equal Y or NA(). NA() will not plot in a line or XY chart.
The formula would look like this:

Y dashed:
=IF(<Y dashed>,Y,NA())

Y solid
=IF(<Y solid),Y,NA())

where <> indicate the condition to display that column, and Y is a link
to the corresponding cell in the original Y column.

Select the column of X values, then hold CTRL while selecting both Y
columns. Make your chart. Set the cell to display the dashed line, then
format the dashed line series. Set the cell to show the solid line, and
format the solid line series.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


JeroenM wrote:

> OK, but how can I make sure that the chart "knows" which line it has to draw,
> a dotted or continuous one? This depends on the value of a cell somewhere in
> the worksheet.
>
> JeroenM.
>
> "Barb Reinhardt" schreef:
>
>
>>If you want it dotted in some places and a line in others, you'll need to
>>have a series for the dotted line and a series for the solid line.
>>
>>Good luck.
>>
>>"JeroenM" wrote:
>>
>>
>>>Hello,
>>>
>>>I have the following question:
>>>I have an Excel chart with a target line. In some cases I want to have the
>>>target line as a dotted line, and sometines as a continuous line. Somewhere
>>>on the worksheet is a cell wich determines if it must be a dotted or
>>>continous line. Is it possible to make the chart in such way that if I
>>>change the cell for continuous/dotted, the line in the chart is updated
>>>automatically (from dotted to continuous or the other way).
>>>
>>>Thanks in advance,
>>>
>>>JeroenM.

 
Reply With Quote
 
=?Utf-8?B?SmVyb2VuTQ==?=
Guest
Posts: n/a
 
      26th Oct 2005

Sorry for the late response, but still thanks.

JeroenM.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to change position of chart labels on line chart Shane Henderson Microsoft Excel Charting 1 27th May 2011 09:31 AM
'Automatic' change to Line Chart from XY Scatter Chart - cannotchange back Daniel Microsoft Excel Discussion 2 10th Nov 2010 04:29 PM
change line formatting in line chart - Excel 2007 LisaK Microsoft Excel Charting 1 27th Aug 2009 11:09 AM
change last serie to be line in the line-column Excel chart in Wor =?Utf-8?B?RXJpYw==?= Microsoft Excel Charting 3 30th Jun 2007 04:58 PM
Make a line in a bar chart, and change color of any bars that exceed the line MarkM Microsoft Excel Misc 4 5th Jul 2006 04:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:25 AM.