A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Statistics, #N/A and dynamic range problem



 
 
Thread Tools Display Modes
  #1  
Old December 7th, 2003, 07:20 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default Statistics, #N/A and dynamic range problem

This should take care of it

=MIN(IF(ISNUMBER(MyRange),MyRange))

=MAX(IF(ISNUMBER(MyRange),MyRange))

I assume that you want to include the N/A error as zero in the average?
If not

=AVERAGE(IF(ISNUMBER(MyRange),MyRange))

if you want to include the N/A in the average as zero

=SUMIF(MyRange,"#N/A")/COUNTA(MyRange)

the 3 first formulas entered with ctrl + shift & enter

note that both the average formulas will return a div error if MyRange is
empty
--

Regards,

Peo Sjoblom

"OscarC" wrote in message
...

Hello

I have several columns of data all of which start in row 7. In rows 1
- 6 I have summary statistics for each column of data, e.g. min, max,
mean, std dev etc.

Each column of data has a dynamic named range for use with a graph. ie
='Sheet1'!$C$7:OFFSET('Sheet'!$C$7,COUNTA('Sheet'! $C$7:$C$65536)-1,0)

Occassionally the data includes a blank cell, so to ensure that the
dynamic range works correctly, I have inserted #N/A in to the blank
cells.

The problem is this upsets the statistic summary in rows 1-7, which
return #N/A.

If I change the formula for the stats to an array formula as below I
can avoid the #N/A error:

=Max(IF(NOT(ISERROR(My_Range)),My_Range))

Which is fine for MAX, but not for MIN and AVERAGE as it assumes the
#N/A in the data column is a zero, so for MIN, 0 is reported.

The array formula =MIN(IF(My_Range0,My_Range,False)) would ignore a
zero.

Is there any way to combine these two array formulae, so they #N/A and
zero problem would be ignored in my stats summary?

Or is there a better way to achieve my goal - produce a stats summary
for my columns of data in the first 6 rows of each column, and use a
dynamic ranges to prouduce graphs, taking into account I have blank
cells?

Any help would be greatly appreciated!

Thanks,


Michael


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

~~Now Available: Financial Statements.xls, a step by step guide to

creating financial statements


  #2  
Old December 7th, 2003, 08:36 PM
OscarC
external usenet poster
 
Posts: n/a
Default Statistics, #N/A and dynamic range problem

On Sun, 7 Dec 2003 14:20:43 -0500, "Peo Sjoblom"
wrote:

This should take care of it

=MIN(IF(ISNUMBER(MyRange),MyRange))

=MAX(IF(ISNUMBER(MyRange),MyRange))

I assume that you want to include the N/A error as zero in the average?
If not

=AVERAGE(IF(ISNUMBER(MyRange),MyRange))

if you want to include the N/A in the average as zero

=SUMIF(MyRange,"#N/A")/COUNTA(MyRange)

the 3 first formulas entered with ctrl + shift & enter

note that both the average formulas will return a div error if MyRange is
empty



Thanks, that is the answer I am looking for! I decided against using
the N/A in the average as a zero.

Thanks again,

Michael
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.