Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Worksheet functions plot and #NA's

A very common task is: to plot an range of cells and to do some calculation
(e.g. Average) on the same range of cells.

If all cells contain numeric values this works fine.

If some values are "missing", indicated by empty cells, it also works fine:
the missing values are not plotted and they are not taken into considerations
the calculated average.

But if the cellls are a result of a calculation the is no (easy) way to
accomplish this:

If the "missing values" are assigned the value #NA, then they are not
plotted, but the average becomes #NA.

If the "missing" values are assigned some non-numeric value (e.g. an empty
string, "") then the Average function becomes correct, but the values are
plotted as zero.

I know (from the frequent posts on the subject) the the problem can be
circumvented by a clumpsy IF array construct. But is a clumpsy workaround
(and who are familiar with Array Functions anyhow ? None of ny engineering
collegues are !)

My question is:

Is there some sort of option in the latest Excel that I have missed and
which solves the problem.

If not:

What is the rationale behind this behaviour ?

And if none:

Why have it not been corrected long ago ?


----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Worksheet functions plot and #NA's

I would think the rationale behind not creating something "new" is that it
already exists. Although you may still think it is "clumpsy" the formula
seems fairly straightforward:

{=AVERAGE(IF(ISNUMBER(A2:A7),A2:A7))}

I can say what I'm doing with a a single sentence. "If the cell is a number,
include in the average." Compared to some of the monstrous formulas I've seen
constructed over the years, this is nothing.

And while you say that most people are unfamiliar with arrays, I would argue
that simply not knowing something doesn't make it unuseful. Many people do
not know (or are familiar with) how to solve differential equations, but its
certainly useful in engineering.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Morten Hvidberg-Knudsen" wrote:

A very common task is: to plot an range of cells and to do some calculation
(e.g. Average) on the same range of cells.

If all cells contain numeric values this works fine.

If some values are "missing", indicated by empty cells, it also works fine:
the missing values are not plotted and they are not taken into considerations
the calculated average.

But if the cellls are a result of a calculation the is no (easy) way to
accomplish this:

If the "missing values" are assigned the value #NA, then they are not
plotted, but the average becomes #NA.

If the "missing" values are assigned some non-numeric value (e.g. an empty
string, "") then the Average function becomes correct, but the values are
plotted as zero.

I know (from the frequent posts on the subject) the the problem can be
circumvented by a clumpsy IF array construct. But is a clumpsy workaround
(and who are familiar with Array Functions anyhow ? None of ny engineering
collegues are !)

My question is:

Is there some sort of option in the latest Excel that I have missed and
which solves the problem.

If not:

What is the rationale behind this behaviour ?

And if none:

Why have it not been corrected long ago ?


----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Worksheet functions plot and #NA's

You (intentionally ?) miss the point:

What is the reason (rationale behind) that the "missing value" treatment is
diffent in plots and in worksheet functions. ?

And exactly when does it "come handy" that non-numeric cells are plotted as
zero ?

"Luke M" wrote:

I would think the rationale behind not creating something "new" is that it
already exists. Although you may still think it is "clumpsy" the formula
seems fairly straightforward:

{=AVERAGE(IF(ISNUMBER(A2:A7),A2:A7))}

I can say what I'm doing with a a single sentence. "If the cell is a number,
include in the average." Compared to some of the monstrous formulas I've seen
constructed over the years, this is nothing.

And while you say that most people are unfamiliar with arrays, I would argue
that simply not knowing something doesn't make it unuseful. Many people do
not know (or are familiar with) how to solve differential equations, but its
certainly useful in engineering.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Morten Hvidberg-Knudsen" wrote:

A very common task is: to plot an range of cells and to do some calculation
(e.g. Average) on the same range of cells.

If all cells contain numeric values this works fine.

If some values are "missing", indicated by empty cells, it also works fine:
the missing values are not plotted and they are not taken into considerations
the calculated average.

But if the cellls are a result of a calculation the is no (easy) way to
accomplish this:

If the "missing values" are assigned the value #NA, then they are not
plotted, but the average becomes #NA.

If the "missing" values are assigned some non-numeric value (e.g. an empty
string, "") then the Average function becomes correct, but the values are
plotted as zero.

I know (from the frequent posts on the subject) the the problem can be
circumvented by a clumpsy IF array construct. But is a clumpsy workaround
(and who are familiar with Array Functions anyhow ? None of ny engineering
collegues are !)

My question is:

Is there some sort of option in the latest Excel that I have missed and
which solves the problem.

If not:

What is the rationale behind this behaviour ?

And if none:

Why have it not been corrected long ago ?


----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Worksheet functions plot and #NA's

The easy option is to use "" as the output of one series from which to take
the average, and NA() as the output of another series to plot.
Fortunately Microsoft won't charge you extra for using an extra series.
--
David Biddulph

"Morten Hvidberg-Knudsen"
wrote in message ...
A very common task is: to plot an range of cells and to do some calculation
(e.g. Average) on the same range of cells.

If all cells contain numeric values this works fine.

If some values are "missing", indicated by empty cells, it also works
fine:
the missing values are not plotted and they are not taken into
considerations
the calculated average.

But if the cellls are a result of a calculation the is no (easy) way to
accomplish this:

If the "missing values" are assigned the value #NA, then they are not
plotted, but the average becomes #NA.

If the "missing" values are assigned some non-numeric value (e.g. an empty
string, "") then the Average function becomes correct, but the values are
plotted as zero.

I know (from the frequent posts on the subject) the the problem can be
circumvented by a clumpsy IF array construct. But is a clumpsy workaround
(and who are familiar with Array Functions anyhow ? None of ny engineering
collegues are !)

My question is:

Is there some sort of option in the latest Excel that I have missed and
which solves the problem.

If not:

What is the rationale behind this behaviour ?

And if none:

Why have it not been corrected long ago ?


----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions



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
vlookup has all #na's even though there is a match Janis Excel Discussion (Misc queries) 2 August 2nd 07 06:14 PM
vlookup #na's even though there are matches Janis Excel Discussion (Misc queries) 1 August 2nd 07 05:00 PM
plot graph from multiple worksheet as embedded chart object on every worksheet [email protected] Charts and Charting in Excel 3 August 24th 06 07:26 PM
plot graph from multiple worksheet as embedded chart object on every worksheet [email protected] Excel Worksheet Functions 2 August 24th 06 05:26 PM
plot graph from multiple worksheet as embedded chart object on every worksheet jeftiong New Users to Excel 0 August 23rd 06 01:50 PM


All times are GMT +1. The time now is 05:01 AM.

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"