Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Nick Turner
 
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   Report Post  
Andy Pope
 
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   Report Post  
Nick Turner
 
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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Label an average line in a dynamic chart John Cordes Charts and Charting in Excel 3 June 17th 05 09:42 AM
chart data line in two colors ReadyToLearn Charts and Charting in Excel 2 April 8th 05 06:57 PM
How do I get my data labels on a pivot chart to retain their form. s de maia Charts and Charting in Excel 1 March 18th 05 03:34 AM
Pie Chart Data Labels gb_S49 Charts and Charting in Excel 4 January 26th 05 02:37 PM
pivot table multi line chart souris Charts and Charting in Excel 2 December 7th 04 03:56 AM


All times are GMT +1. The time now is 04:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"