Charting blank cells as 0 when using dynamic ranges

tkos

New Member
Joined
Aug 6, 2002
Messages
16
In an Excel 2000 workbook, I'm using dynamic ranges to define a cell range. I need to use dynamic ranges because the data in the spreadsheet changes each day and re-creating all of the charts manually would be too much work. A simple example of the problem is below
Sheet1
A B C
Date Color Price
1/1/2009 Blue 10
1/2/2009 Blue 15
1/3/2009 Red 8
1/4/2009 Yellow 9
1/5/2009 Blue 8
1/6/2009 Green 7

In the example above the named ranges are:
"Date"-=INDIRECT("Sheet1!$A$2:$A$" & COUNTA(Sheet1!$A:$A),TRUE)
"Color"-=INDIRECT("Sheet1!$b$2:$b$" & COUNTA(Sheet1!$A:$A),TRUE)
"Price"-=INDIRECT("Sheet1!$c$2:$c$" & COUNTA(Sheet1!$A:$A),TRUE)
"BluePrice"-=IF(Color="Blue",Price,NA())

When a chart is created using the "Date" & "BluePrice" ranges, the "#N/A" values are plotted as zeros. Is there any way to create a chart using these ranges without have the zeros plotted? I didn't run into this problem in previous versions of Excel.

I would prever not to place the "blueprice" formula on a work sheet because the spreadsheet and creating the chart that way. The workbook I'm working with has hundreds of charts on it and placing all of the formulas on a sheet within the workbook would slow things down considerably.

Thanks for any help
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Select the chart.

Tools -> Options... -> [Chart] Tab ->

Active Chart -------------------------------------
Plot Empty Cells As (o) Not plotted (leave gaps)

-or-

(o) Interpolated

Depending on which you want.
 
Upvote 0
Thanks for the reply Sal. It looks like I left out a key piece of information in my earlier post, I'm currently using Excel 2007. Your solution works perfectly in 2000, any ideas how to get it to work in 2007?
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top