Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 143
Default Average ignoring Zeros

=AVERAGE(IF(Start:End!C22<0,Start:End!C22,""))

Hi All can anyone tell me what's wrong with the above mentioned formula? I
am pressing CTRl+SHIFT+ENTER.

What I am trying to do here is, take the average of cell C22 from all the
sheets between the two sheets named as Start and End ignoring all the zero
values.

Thanks for any help.
Gary


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Average ignoring Zeros

You can't use an array of references like that in an IF function.

You'd need to do something like this:

List the sheet names in a range of cells:

H1 = Start
H2 = Sheet2
H3 = End

=SUM(Start:End!C22)/SUMPRODUCT(COUNTIF(INDIRECT("'"&H1:H3&"'!C22"),"< 0"))

Biff

"Gary" wrote in message
...
=AVERAGE(IF(Start:End!C22<0,Start:End!C22,""))

Hi All can anyone tell me what's wrong with the above mentioned formula? I
am pressing CTRl+SHIFT+ENTER.

What I am trying to do here is, take the average of cell C22 from all the
sheets between the two sheets named as Start and End ignoring all the zero
values.

Thanks for any help.
Gary



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 143
Default Average ignoring Zeros

Thanks Biff

The data is in %age. Do you think that would make some difference? because i
think it is.


"T. Valko" wrote in message
...
You can't use an array of references like that in an IF function.

You'd need to do something like this:

List the sheet names in a range of cells:

H1 = Start
H2 = Sheet2
H3 = End

=SUM(Start:End!C22)/SUMPRODUCT(COUNTIF(INDIRECT("'"&H1:H3&"'!C22"),"< 0"))

Biff

"Gary" wrote in message
...
=AVERAGE(IF(Start:End!C22<0,Start:End!C22,""))

Hi All can anyone tell me what's wrong with the above mentioned formula?
I am pressing CTRl+SHIFT+ENTER.

What I am trying to do here is, take the average of cell C22 from all the
sheets between the two sheets named as Start and End ignoring all the
zero values.

Thanks for any help.
Gary





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Average ignoring Zeros

That should not make any difference. A % is still a number.

Biff

"Gary" wrote in message
...
Thanks Biff

The data is in %age. Do you think that would make some difference? because
i think it is.


"T. Valko" wrote in message
...
You can't use an array of references like that in an IF function.

You'd need to do something like this:

List the sheet names in a range of cells:

H1 = Start
H2 = Sheet2
H3 = End

=SUM(Start:End!C22)/SUMPRODUCT(COUNTIF(INDIRECT("'"&H1:H3&"'!C22"),"< 0"))

Biff

"Gary" wrote in message
...
=AVERAGE(IF(Start:End!C22<0,Start:End!C22,""))

Hi All can anyone tell me what's wrong with the above mentioned formula?
I am pressing CTRl+SHIFT+ENTER.

What I am trying to do here is, take the average of cell C22 from all
the sheets between the two sheets named as Start and End ignoring all
the zero values.

Thanks for any help.
Gary







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
30 Day Moving Average Ignoring Blank Cells ethatch Excel Worksheet Functions 2 January 17th 06 09:37 AM
Conditional Average Ignoring Blanks Dirk Friedrichs via OfficeKB.com Excel Worksheet Functions 2 May 6th 05 03:49 PM
Averaging noncontiguous numbers ignoring zeros? Mike Excel Worksheet Functions 19 March 4th 05 02:05 AM
Averaging, ignoring zeros Mark Excel Worksheet Functions 5 February 28th 05 10:25 PM
Formula to average ignoring negatives? Steve Excel Discussion (Misc queries) 16 January 1st 05 12:57 PM


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