PC Review


Reply
Thread Tools Rate Thread

Average of cell values - Ignore if 0

 
 
Les
Guest
Posts: n/a
 
      27th Jun 2008
Hi all,

I have a spreadsheet with 7 calculations in, from columns F to L. Tha
calculations are "=G36-G40". The results can be variable that have values
greater than 0 in.
What i want to do is to get the average value of the cells with a value
greater than 0.

1049.96 1049.96 1083.46 1049.96 1049.96 0.00 0.00

The above should give me an average of 1, 056.66

Any help would be much appreciated.

--
Les
 
Reply With Quote
 
 
 
 
Harald Staff
Guest
Posts: n/a
 
      27th Jun 2008
Hi Les

One way among several:

=SUM(F1:L1)/COUNTIF(F1:L1,">"&0)

Note that you've excluded negative numbers. Change to "<>"&0 if you change
your mind.

HTH. Best wishes Harald


"Les" <(E-Mail Removed)> skrev i melding
news:817E20EA-F156-4495-8D2C-(E-Mail Removed)...
> Hi all,
>
> I have a spreadsheet with 7 calculations in, from columns F to L. Tha
> calculations are "=G36-G40". The results can be variable that have values
> greater than 0 in.
> What i want to do is to get the average value of the cells with a value
> greater than 0.
>
> 1049.96 1049.96 1083.46 1049.96 1049.96 0.00 0.00
>
> The above should give me an average of 1, 056.66
>
> Any help would be much appreciated.
>
> --
> Les



 
Reply With Quote
 
Les
Guest
Posts: n/a
 
      27th Jun 2008
Thanks Harald, Much appreciated
--
Les


"Harald Staff" wrote:

> Hi Les
>
> One way among several:
>
> =SUM(F1:L1)/COUNTIF(F1:L1,">"&0)
>
> Note that you've excluded negative numbers. Change to "<>"&0 if you change
> your mind.
>
> HTH. Best wishes Harald
>
>
> "Les" <(E-Mail Removed)> skrev i melding
> news:817E20EA-F156-4495-8D2C-(E-Mail Removed)...
> > Hi all,
> >
> > I have a spreadsheet with 7 calculations in, from columns F to L. Tha
> > calculations are "=G36-G40". The results can be variable that have values
> > greater than 0 in.
> > What i want to do is to get the average value of the cells with a value
> > greater than 0.
> >
> > 1049.96 1049.96 1083.46 1049.96 1049.96 0.00 0.00
> >
> > The above should give me an average of 1, 056.66
> >
> > Any help would be much appreciated.
> >
> > --
> > Les

>
>
>

 
Reply With Quote
 
Harald Staff
Guest
Posts: n/a
 
      27th Jun 2008
Apologies. Negative values will affect the sum but not the count. Change to

=SUMIF(F1:L1,">"&0)/COUNTIF(F1:L1,">"&0)

Best wishes Harald

"Les" <(E-Mail Removed)> skrev i melding
newsE30CA76-525E-4BD0-BF08-(E-Mail Removed)...
> Thanks Harald, Much appreciated
> --
> Les
>
>
> "Harald Staff" wrote:
>
>> Hi Les
>>
>> One way among several:
>>
>> =SUM(F1:L1)/COUNTIF(F1:L1,">"&0)
>>
>> Note that you've excluded negative numbers. Change to "<>"&0 if you
>> change
>> your mind.
>>
>> HTH. Best wishes Harald
>>
>>
>> "Les" <(E-Mail Removed)> skrev i melding
>> news:817E20EA-F156-4495-8D2C-(E-Mail Removed)...
>> > Hi all,
>> >
>> > I have a spreadsheet with 7 calculations in, from columns F to L. Tha
>> > calculations are "=G36-G40". The results can be variable that have
>> > values
>> > greater than 0 in.
>> > What i want to do is to get the average value of the cells with a value
>> > greater than 0.
>> >
>> > 1049.96 1049.96 1083.46 1049.96 1049.96 0.00 0.00
>> >
>> > The above should give me an average of 1, 056.66
>> >
>> > Any help would be much appreciated.
>> >
>> > --
>> > Les

>>
>>
>>



 
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
Ignore text but count values in same cell TEK Microsoft Excel Misc 2 10th Jan 2009 03:11 PM
How do I ignore cell values of zero? cenendra Microsoft Excel Worksheet Functions 2 19th Feb 2008 06:02 PM
ignore MAX and MIN values in a set to calculate average Dave F Microsoft Excel Misc 5 16th Oct 2007 06:07 PM
UDF code to find specific text in cell comments, then average cell values bruch04 Microsoft Excel Programming 3 5th Dec 2005 10:01 PM
Average ignore values of 0 MeritageSue Microsoft Excel Worksheet Functions 8 1st Feb 2004 06:57 AM


Features
 

Advertising
 

Newsgroups
 


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