Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default getting chart legend to ignore #NA s!

Hi there,
I have a pei chart based on a dynamic table that sometimes contains #NA for
the rows data.

The chart updates fine, but in the legend i get an entry for every row -
including all the NAs! is there any way i can avoud this that you can think
of?

I've used VBA plenty in Access, so am prepared to have a bash writing any
code in excel with any pointers you may have!
thx
  #2   Report Post  
Posted to microsoft.public.excel.misc
EJ EJ is offline
external usenet poster
 
Posts: 20
Default getting chart legend to ignore #NA s!

I would use IF IS ERROR in each cell or ISNA to get a blank cell instead of a
#N/A

"arran1180" wrote:

Hi there,
I have a pei chart based on a dynamic table that sometimes contains #NA for
the rows data.

The chart updates fine, but in the legend i get an entry for every row -
including all the NAs! is there any way i can avoud this that you can think
of?

I've used VBA plenty in Access, so am prepared to have a bash writing any
code in excel with any pointers you may have!
thx

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default getting chart legend to ignore #NA s!

To follow up on EJ's response, if you post the formula(s) which return #NA!
errors, someone here can tell you how to trap the error (i.e., have 0 or ""
returned in place of the error).

Dave
--
Brevity is the soul of wit.


"EJ" wrote:

I would use IF IS ERROR in each cell or ISNA to get a blank cell instead of a
#N/A

"arran1180" wrote:

Hi there,
I have a pei chart based on a dynamic table that sometimes contains #NA for
the rows data.

The chart updates fine, but in the legend i get an entry for every row -
including all the NAs! is there any way i can avoud this that you can think
of?

I've used VBA plenty in Access, so am prepared to have a bash writing any
code in excel with any pointers you may have!
thx

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,489
Default getting chart legend to ignore #NA s!

Hi,

This example shows how to exclude zeros.
http://www.andypope.info/charts/piezeros.htm

You should be able to adapt for non numeric by replacing the formula in
C1 with,
=IF(ISNUMBER(B2),B2+(ROWS(B2:B$2)/1000*(B2<0)),0)

and copying down.

Another alternative is to hide rows and set chart option 'plot visible
cells only'. Then you only need code to hide rows.

Cheers
Andy

arran1180 wrote:
Hi there,
I have a pei chart based on a dynamic table that sometimes contains #NA for
the rows data.

The chart updates fine, but in the legend i get an entry for every row -
including all the NAs! is there any way i can avoud this that you can think
of?

I've used VBA plenty in Access, so am prepared to have a bash writing any
code in excel with any pointers you may have!
thx

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
Hiding a non-plotted chart series in legend Gromit Excel Discussion (Misc queries) 0 January 12th 06 09:42 PM
Change default settings for surface chart legend rmellison Charts and Charting in Excel 2 January 11th 06 09:19 AM
Chart Legend Items: hide/show Richard Ahlvin Charts and Charting in Excel 5 September 5th 05 03:04 PM
How to hide a dummy series in a chart legend? holg3r New Users to Excel 2 July 14th 05 09:04 AM
Stack Chart Legend Display John Charts and Charting in Excel 1 May 15th 05 03:44 AM


All times are GMT +1. The time now is 10:15 PM.

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

About Us

"It's about Microsoft Excel"