View Single Post
  #2   Report Post  
Tushar Mehta
 
Posts: n/a
Default

Please note that every time this topic comes up, the 'discussion'
quickly degenerates into a mud-slinging fest. So, if you have the urge
to attack me personally do keep in mind that I am posting this to help
you and you are free to reject the suggestions.

Given the number of requests for something like this feature hopefully
MS will consider it. Also, I don't know what options you have
considered and rejected. However, you may want to look at:

Consider a plot on a log scale of the foll. data starting from A1:

01-Jan -1
02-Jan 0
03-Jan 1
04-Jan 2
05-Jan -1
06-Jan 100
07-Jan 1000

There are two ways to do this. First, in C1 enter the formula =IF(B1<=
0,NA(),B1). Copy this down to cover all rows with data. Now, plot
columns A and C.

The second option is to use a named formula. For my test, I used
PlotVals =IF(Sheet1!$B$1:$B$7<=0,NA(),Sheet1!$B$1:$B$7)
Now, plot column A and the named formula PlotVals.

If you have data that are missing, XL handles that in one of two
ways. If a cell is truly empty (not just a zero length string such as
""), select the chart, then Tools | Options... | Chart tab. Select how
XL should handle missing points.

The second option is to simply put NA() in the cells you don't want XL
to plot.

Finally, you could use VBA code to sanitize the data before plotting.

Granted, none of them are as easy as clicking on a chart. But, that's
what avaiable right now.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
I know perfectly well that I can't plot negative values on a log chart. That
doesn't mean that my data doesn't have negative numbers in it. For years
I've been trying to outsmart Excel so that it effectively ignores negative
data on log plots, but it seems to me that it should simply happen (like it
does in most other mathematical tools). If the user isn't smart enough to
know that he can't plot negative numbers on a log scale, well, warn him by
default, if you must, but allow the skilled user to disable the message! It
is incredibly annoying, and it reduces my productivity by 100% when I'm
analyzing very typical data in thermal tests.

I can turn off just about anything other automatic stuff else that bothers
me (like converting cells with "@" into email addresses, for crying out loud
- that took me a long time to figure out how to disable). What's wrong with
a "don't show me this again" checkbox on the "Negative values cannot be
plotted correctly on a log chart." warning dialog? What's wrong with simply
ignoring the negative data and not plotting it, just like you do with #NA and
#VALUE and all those other unplottable values?

I don't want to have to build my own log charts that ignore negative numbers
(I could, but what's the point of a built-in log chart if you can't use it).
I don't want to have to write formulas for cells to make the offending
negative value "invisible" to the chart (I've tried dozens of ways, and they
all fail to be user-friendly at some level, like making OTHER dependent
formulas fail gracelessly). What I want is to tell Excel that I'm smart
enough to know that when the chart has a hole in it, it's because it couldn't
plot the data. What's so hard about that?

This has frustrated me for years. Can you tell?