View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier Jon Peltier is offline
external usenet poster
 
Posts: 6,582
Default Chart displaying "blank" cells?

Are the unwanted cells only at the end of the range? Then define a named
range that is as long as the number of rows with data.

http://peltiertech.com/WordPress/200...ynamic-charts/
http://peltiertech.com/Excel/Charts/Dynamics.html

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


"@bhi" wrote in message
...
Yes it creates space where bar would go for all NA() (#NA) or 0.
For example I am using similar data same as bellow format
(both year and sales will come on runtime but will not be more than 10
values)

Year Sales
2001 100
2002 200
2003 300
2004 400
2005 500
#NA #NA
#NA #NA
#NA #NA
#NA #NA

so here years and its data can come from 2001 to 2010 depend upon user
selected criteria. I want to draw chart only for the which value exist.




I am using

"Jon Peltier" wrote:

It creates a bar, or it creates a space where the bar would go?

Maybe you should paste your data into a reply.

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


"@bhi" wrote in message
...
I tried all 3
(1) NA() i.e #NA
(2) ""
(3) 0

but it creates bar for all of them.


"Jon Peltier" wrote:

NA() works for line and XY charts. Try "" for column or bar charts.

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


"@bhi" wrote in message
...
I have the same problem. I tried using NA() but it displayts #NA as a
column
in chart. Any suggestion ?