PC Review


Reply
Thread Tools Rate Thread

Average non-adjacent cells & exclude zeros

 
 
=?Utf-8?B?RGFubmkyMDA0?=
Guest
Posts: n/a
 
      17th Sep 2007
I want to find an average of three cells that are non-adjacent and will
occasionally have a zero in it.
Example:
=AVERAGE(H12,V12,AJ12)

How can I rewrite this so that the formula will not include the cell in the
average if its value is zero?

Thanks!
 
Reply With Quote
 
 
 
 
Peo Sjoblom
Guest
Posts: n/a
 
      17th Sep 2007
One way

=AVERAGE(IF((MOD(COLUMN(H12:AJ12),14)=8)*(H12:AJ12<>0),H12:AJ12))


needs to be entered with ctrl + shift & enter

this assumes you have the same number of columns between each value like you
have in your example


--


Regards,


Peo Sjoblom


"Danni2004" <(E-Mail Removed)> wrote in message
news:77157F53-DC0A-4AC4-A082-(E-Mail Removed)...
>I want to find an average of three cells that are non-adjacent and will
> occasionally have a zero in it.
> Example:
> =AVERAGE(H12,V12,AJ12)
>
> How can I rewrite this so that the formula will not include the cell in
> the
> average if its value is zero?
>
> Thanks!



 
Reply With Quote
 
=?Utf-8?B?RGFubmkyMDA0?=
Guest
Posts: n/a
 
      18th Sep 2007
Thanks Peo.
Can you clarify what the "8" is for in this formula?
Also, I've seen other posts with the Ctrl + Shift & Enter before. Can you
explain why you have to use this?

"Peo Sjoblom" wrote:

> One way
>
> =AVERAGE(IF((MOD(COLUMN(H12:AJ12),14)=8)*(H12:AJ12<>0),H12:AJ12))
>
>
> needs to be entered with ctrl + shift & enter
>
> this assumes you have the same number of columns between each value like you
> have in your example
>
>
> --
>
>
> Regards,
>
>
> Peo Sjoblom
>
>
> "Danni2004" <(E-Mail Removed)> wrote in message
> news:77157F53-DC0A-4AC4-A082-(E-Mail Removed)...
> >I want to find an average of three cells that are non-adjacent and will
> > occasionally have a zero in it.
> > Example:
> > =AVERAGE(H12,V12,AJ12)
> >
> > How can I rewrite this so that the formula will not include the cell in
> > the
> > average if its value is zero?
> >
> > Thanks!

>
>
>

 
Reply With Quote
 
David Biddulph
Guest
Posts: n/a
 
      18th Sep 2007
What are the column numbers for H12, V12, and AJ12? What does
MOD(column_number,14) return in each of those cases?

Control Shift Enter is used to enter an array formula. look up array
formula in Excel help.
--
David Biddulph

"Danni2004" <(E-Mail Removed)> wrote in message
news:69EC30C4-0D5C-4DE2-93A9-(E-Mail Removed)...
> Thanks Peo.
> Can you clarify what the "8" is for in this formula?
> Also, I've seen other posts with the Ctrl + Shift & Enter before. Can you
> explain why you have to use this?


> "Peo Sjoblom" wrote:
>
>> One way
>>
>> =AVERAGE(IF((MOD(COLUMN(H12:AJ12),14)=8)*(H12:AJ12<>0),H12:AJ12))
>>
>> needs to be entered with ctrl + shift & enter
>>
>> this assumes you have the same number of columns between each value like
>> you
>> have in your example


>> "Danni2004" <(E-Mail Removed)> wrote in message
>> news:77157F53-DC0A-4AC4-A082-(E-Mail Removed)...
>> >I want to find an average of three cells that are non-adjacent and will
>> > occasionally have a zero in it.
>> > Example:
>> > =AVERAGE(H12,V12,AJ12)
>> >
>> > How can I rewrite this so that the formula will not include the cell in
>> > the
>> > average if its value is zero?
>> >
>> > Thanks!

>>
>>
>>



 
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
Average for a column to exclude zeros and numbers above 39000 Max S. Microsoft Excel Misc 3 24th Jun 2009 08:36 PM
average of non contigous data to also exclude zeros markmcd Microsoft Excel Misc 14 25th May 2009 10:00 AM
average of non contigous data to also exclude zeros markmcd Microsoft Excel Misc 0 25th May 2009 04:13 AM
How do I exclude zero's from an average of five non-adjacent cells =?Utf-8?B?TWlrZUc=?= Microsoft Excel Programming 2 5th Sep 2005 07:36 AM
Average non-adjacent cells if the cell does not contain zero =?Utf-8?B?Q2hlcmk=?= Microsoft Excel Misc 11 20th Aug 2005 08:12 AM


Features
 

Advertising
 

Newsgroups
 


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