Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 12
Default hide legend for #N/A series

Hi, Chart guru's,

I have created a spreadsheet with multiple columns that use formulas for
getting the chartdata.
Depending on a datavalidationlist different charts can be made within only
one chartobject.
Sometimes this results in a chart with less series than the maximum.
For this purpose I have put an If condition in my formula that causes the
formula result to become #N/A()
That works fine for the series, but in my legend the color for that series
remains, giving #N/A as the description.

Does anyone of you know a sollution for this?

Thanks in advance,

Ernst Schuurman


  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,344
Default hide legend for #N/A series

Hi Ernst,

If I understand correctly you want the legend entry to disappear when there
is no data for the series? If that is what you want I believe you will need
to use VBA, is that acceptable?

--
Thanks,
Shane Devenshire


"Ernst Schuurman" wrote:

Hi, Chart guru's,

I have created a spreadsheet with multiple columns that use formulas for
getting the chartdata.
Depending on a datavalidationlist different charts can be made within only
one chartobject.
Sometimes this results in a chart with less series than the maximum.
For this purpose I have put an If condition in my formula that causes the
formula result to become #N/A()
That works fine for the series, but in my legend the color for that series
remains, giving #N/A as the description.

Does anyone of you know a sollution for this?

Thanks in advance,

Ernst Schuurman



  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default hide legend for #N/A series

Shane's correct, this cannot be handled automatically without VBA.

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


"ShaneDevenshire" wrote in
message ...
Hi Ernst,

If I understand correctly you want the legend entry to disappear when
there
is no data for the series? If that is what you want I believe you will
need
to use VBA, is that acceptable?

--
Thanks,
Shane Devenshire


"Ernst Schuurman" wrote:

Hi, Chart guru's,

I have created a spreadsheet with multiple columns that use formulas for
getting the chartdata.
Depending on a datavalidationlist different charts can be made within
only
one chartobject.
Sometimes this results in a chart with less series than the maximum.
For this purpose I have put an If condition in my formula that causes the
formula result to become #N/A()
That works fine for the series, but in my legend the color for that
series
remains, giving #N/A as the description.

Does anyone of you know a sollution for this?

Thanks in advance,

Ernst Schuurman





  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 12
Default hide legend for #N/A series

Shane, Jon,

Thanks for your anwsers,

I used to do this entire solution in VBA, but tried to do this all with
worksheetfunctions.
So far I succeded, but got stuck on this.
I will add a small piece of code to hide the legends if needed.

Kind regards,

Ernst


"Jon Peltier" schreef in bericht
...
Shane's correct, this cannot be handled automatically without VBA.

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


"ShaneDevenshire" wrote in
message ...
Hi Ernst,

If I understand correctly you want the legend entry to disappear when
there
is no data for the series? If that is what you want I believe you will
need
to use VBA, is that acceptable?

--
Thanks,
Shane Devenshire


"Ernst Schuurman" wrote:

Hi, Chart guru's,

I have created a spreadsheet with multiple columns that use formulas for
getting the chartdata.
Depending on a datavalidationlist different charts can be made within
only
one chartobject.
Sometimes this results in a chart with less series than the maximum.
For this purpose I have put an If condition in my formula that causes
the
formula result to become #N/A()
That works fine for the series, but in my legend the color for that
series
remains, giving #N/A as the description.

Does anyone of you know a sollution for this?

Thanks in advance,

Ernst Schuurman







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
Series order in Legend Jen[_4_] Charts and Charting in Excel 4 June 28th 07 12:46 PM
Dynamic legend/series judith Charts and Charting in Excel 0 May 26th 06 08:44 AM
Hide series names for unused data from chart legend Neil Goldwasser Charts and Charting in Excel 4 February 10th 06 07:13 PM
How to hide a dummy series in a chart legend? holg3r New Users to Excel 2 July 14th 05 09:04 AM
Remove Legend Series GregBausman Charts and Charting in Excel 1 March 1st 05 11:07 PM


All times are GMT +1. The time now is 06:23 AM.

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"