A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

auto position of data labels in a line chart



 
 
Thread Tools Display Modes
  #1  
Old October 18th, 2005, 05:55 AM
Nick Turner
external usenet poster
 
Posts: n/a
Default auto position of data labels in a line chart

Hi All

Does anybody know of a way of automatically having data labels either
positioned above or below depending on another cell value?

Basically when I update data behind a series of charts, sometimes (depending
on the values) its best to have the value labels above and sometimes below.
I want the chart to know which is best automatically without me clicking on
each series of data labels and manually changing them. I was thinking I
could link this condition to a cell (in which I would have a formula telling
it what to do).

I think the only way that this could be done would be within VB, but am not
sure.

Thanks in advance

Nick
  #2  
Old October 18th, 2005, 08:27 AM
Andy Pope
external usenet poster
 
Posts: n/a
Default auto position of data labels in a line chart

Hi,

For a non vba approach. Try adding 2 extra series, which will display
the up/down data labels. Add formula to their cells so that either the
value is used or NA().

Format the 2 data series to have no pattern or fill/markers. Add data
labels to each and format one set to align above and one below.
If that didn't make any sense post back

Cheers
Andy

Nick Turner wrote:
Hi All

Does anybody know of a way of automatically having data labels either
positioned above or below depending on another cell value?

Basically when I update data behind a series of charts, sometimes (depending
on the values) its best to have the value labels above and sometimes below.
I want the chart to know which is best automatically without me clicking on
each series of data labels and manually changing them. I was thinking I
could link this condition to a cell (in which I would have a formula telling
it what to do).

I think the only way that this could be done would be within VB, but am not
sure.

Thanks in advance

Nick


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #3  
Old October 18th, 2005, 11:43 PM
Nick Turner
external usenet poster
 
Posts: n/a
Default auto position of data labels in a line chart

Thanks Andy

Makes sense. I was hopeing that their was a way I could do this without
using VBA.

Nick

"Andy Pope" wrote:

Hi,

For a non vba approach. Try adding 2 extra series, which will display
the up/down data labels. Add formula to their cells so that either the
value is used or NA().

Format the 2 data series to have no pattern or fill/markers. Add data
labels to each and format one set to align above and one below.
If that didn't make any sense post back

Cheers
Andy

Nick Turner wrote:
Hi All

Does anybody know of a way of automatically having data labels either
positioned above or below depending on another cell value?

Basically when I update data behind a series of charts, sometimes (depending
on the values) its best to have the value labels above and sometimes below.
I want the chart to know which is best automatically without me clicking on
each series of data labels and manually changing them. I was thinking I
could link this condition to a cell (in which I would have a formula telling
it what to do).

I think the only way that this could be done would be within VB, but am not
sure.

Thanks in advance

Nick


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I save an access document in word document? cmartin General Discussion 2 September 13th, 2005 11:26 PM
Data selection on line chart Qiset Charts and Charting 2 August 11th, 2005 02:08 PM
Goal Line in chart but not on data tabel BMSpell Charts and Charting 1 February 1st, 2005 06:41 PM
Is it possible to plot this kind of data in a (line) chart w/ preferred axis? How? pgtr General Discussion 4 September 15th, 2004 02:05 AM
P & V chart: Secondary X axis gradient (again) wlotto Charts and Charting 9 March 15th, 2004 05:26 PM


All times are GMT +1. The time now is 12:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.