PC Review


Reply
Thread Tools Rate Thread

average formula ingoring empty cells

 
 
jenparker1234
Guest
Posts: n/a
 
      12th Jul 2006

I need to create a formula to average several cells, but the cells are
not in a range.

So far I have =AVERAGE(G3, J3, M3, P3, S3), which works fine, but cells
M3,
P3 and S3 are empty (zero) until I have the data that I need. I want
the formula to already be set up for future input.

I've been able to make it work for a range of values (G3:S3), but not
with indivual cells in a group.

Help please! Thanks.


--
jenparker1234
------------------------------------------------------------------------
jenparker1234's Profile: http://www.excelforum.com/member.php...o&userid=36266
View this thread: http://www.excelforum.com/showthread...hreadid=560539

 
Reply With Quote
 
 
 
 
duane
Guest
Posts: n/a
 
      12th Jul 2006

the average formula you posted will ignore blanks, but not zero values.
here is an alternative formula, which will average the cells you
requested, including only the non zero values. J is column 10, M is
column 13, etc.

=SUMPRODUCT((MOD(COLUMN(G3:S3)-1,3)=0)*(G3:S3<>0)*(G3:S3))/SUMPRODUCT((MOD(COLUMN(G3:S3)-1,3)=0)*(G3:S3<>0))


--
duane


------------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...o&userid=11624
View this thread: http://www.excelforum.com/showthread...hreadid=560539

 
Reply With Quote
 
Biff
Guest
Posts: n/a
 
      12th Jul 2006
Hi!

Not sure what you're asking for.

>cells M3, P3 and S3 are empty (zero)


Are the cells EMPTY or do they contain the number 0?

AVERAGE will ignore the empty cells, they are not included as 0 values. Do
you want to exclude cells that contain the number 0?

Biff

"jenparker1234" <(E-Mail Removed)>
wrote in message
news:(E-Mail Removed)...
>
> I need to create a formula to average several cells, but the cells are
> not in a range.
>
> So far I have =AVERAGE(G3, J3, M3, P3, S3), which works fine, but cells
> M3,
> P3 and S3 are empty (zero) until I have the data that I need. I want
> the formula to already be set up for future input.
>
> I've been able to make it work for a range of values (G3:S3), but not
> with indivual cells in a group.
>
> Help please! Thanks.
>
>
> --
> jenparker1234
> ------------------------------------------------------------------------
> jenparker1234's Profile:
> http://www.excelforum.com/member.php...o&userid=36266
> View this thread: http://www.excelforum.com/showthread...hreadid=560539
>



 
Reply With Quote
 
duane
Guest
Posts: n/a
 
      12th Jul 2006

another solution to ignore the zero values (or blanks) in the range you
requested - enter this with control+shift+enter

=AVERAGE(IF(MOD(COLUMN($G$3:$S$3)-1,3)=0,IF($G$3:$S$3>0,$G$3:$S$3)))


--
duane


------------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...o&userid=11624
View this thread: http://www.excelforum.com/showthread...hreadid=560539

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I average a range which also contains empty cells Tom Microsoft Excel Misc 2 30th Oct 2009 07:57 PM
how do you skip empty cells or zeros when calculating the average soccerdav2003 Microsoft Excel Programming 1 12th Jun 2008 12:01 AM
Ingoring text in a formula Brad N Microsoft Excel Worksheet Functions 2 11th Jul 2005 04:30 PM
Running average without nonzero values or empty cells wjsubs Microsoft Excel Programming 1 8th Jul 2004 04:24 PM
AVERAGE COLUMNS BUT NOT COUNT EMPTY CELLS =?Utf-8?B?TWFyY2lh?= Microsoft Excel Worksheet Functions 4 19th Jan 2004 05:55 PM


Features
 

Advertising
 

Newsgroups
 


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