Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default blank vs. 0 when plotting a dated timescale graph

Greetings!

I have a plot with dates on the x-axis and numbers on the y-axis.

I am importing database data into excel in the first tab, and
referencing that data in the second tab. The problem I run into is
that when the imported cell is blank, the reference in tab 2 displays
a 0 value. This presents a problem for my plot, which is auto-scaled
on the x-axis.

Example case (3x3 table):
x values: 03/01/07, 05/01/07, blank cell
y values: 50, 30, 20

The blank cell is for a future date that has not transpired. The y-
value is known, but the actual date realized is not, until it happens.

(1) Make a simple column chart, single series, with x values and y
values defined accordingly. You will get an auto-scaled plot showing
March, April, and May, and values of 50 and 30 plotted. This is what
I am looking for, so all is good when the data is manually enterred.

(2) Now, I make the cells in the table reference cells in Tab1 with
the values (e.g. ='Tab1'!A3). The blank cell is blank in tab1, but
displays 0 (or 1/0/1900 if cell is formatted as a date). This now
makes the plot graph a value of 20 on the date of 1/0/1900. This is
not what I'm looking for. However, if I select the cell in Tab2 and
press delete, the plot reverts to the correct view, but I lose my
reference.

I want the behavior in (1) when I'm referencing values in the other
tab, as in (2). Is this possible? Can I use an IF formula that's
something like IF('Tab1'!A3="", [leave blank / set blank], 'Tab1'!
A3)? Is there a setBlank() formula of some kind that can be used in
this fashion, whereby still maintaining the reference to the imported
cell value?

Any insight would be much appreciated.

Thanks,

Nate

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default blank vs. 0 when plotting a dated timescale graph

Use the N/A function

=IF(cell="",NA(),cell)


--
Regards,

Peo Sjoblom



wrote in message
oups.com...
Greetings!

I have a plot with dates on the x-axis and numbers on the y-axis.

I am importing database data into excel in the first tab, and
referencing that data in the second tab. The problem I run into is
that when the imported cell is blank, the reference in tab 2 displays
a 0 value. This presents a problem for my plot, which is auto-scaled
on the x-axis.

Example case (3x3 table):
x values: 03/01/07, 05/01/07, blank cell
y values: 50, 30, 20

The blank cell is for a future date that has not transpired. The y-
value is known, but the actual date realized is not, until it happens.

(1) Make a simple column chart, single series, with x values and y
values defined accordingly. You will get an auto-scaled plot showing
March, April, and May, and values of 50 and 30 plotted. This is what
I am looking for, so all is good when the data is manually enterred.

(2) Now, I make the cells in the table reference cells in Tab1 with
the values (e.g. ='Tab1'!A3). The blank cell is blank in tab1, but
displays 0 (or 1/0/1900 if cell is formatted as a date). This now
makes the plot graph a value of 20 on the date of 1/0/1900. This is
not what I'm looking for. However, if I select the cell in Tab2 and
press delete, the plot reverts to the correct view, but I lose my
reference.

I want the behavior in (1) when I'm referencing values in the other
tab, as in (2). Is this possible? Can I use an IF formula that's
something like IF('Tab1'!A3="", [leave blank / set blank], 'Tab1'!
A3)? Is there a setBlank() formula of some kind that can be used in
this fashion, whereby still maintaining the reference to the imported
cell value?

Any insight would be much appreciated.

Thanks,

Nate



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
How to ignore zero values when plotting a graph Phil Lavis Charts and Charting in Excel 4 May 14th 23 07:43 PM
Excel should have semi-log graph plotting Nev Charts and Charting in Excel 2 September 16th 06 07:39 PM
Plotting a Graph Mayank Excel Discussion (Misc queries) 2 June 9th 06 08:12 PM
Plotting Step Graph with XY Scatter Ralph Heidecke Charts and Charting in Excel 2 December 6th 05 10:30 PM
plotting a single line graph plotting graphg New Users to Excel 0 February 26th 05 10:21 PM


All times are GMT +1. The time now is 03:58 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"