PC Review


Reply
Thread Tools Rate Thread

Average - without zero?

 
 
cjwenngatz@gmail.com
Guest
Posts: n/a
 
      7th Feb 2008
Hello,

I have a sheet that I require a monthly average for, however the
number of months in each column varies. Therefore I've been using the
formula: =AVERAGE(IF(ISNUMBER(B5:B17),B5:B17))

The problem is, this formula adds any zero's into the formula, and
that skews the average. Any ideas on how to change this? An example of
a table I'm using would be:

Jan 12
Feb 14
Mar 21
Apr 0
May 0
Jun 0
Jul 0

I want it to only average those cells that have a number other than 0.

Thanks for any help!
 
Reply With Quote
 
 
 
 
Cliff
Guest
Posts: n/a
 
      7th Feb 2008

=AVERAGE(IF(B5:B17<>0,B5:B17)) & enter this as an array formula via
Ctrl+Shift+Enter

or in Excel 2007

=AVERAGEIF(B5:B17,"<>0")

 
Reply With Quote
 
cjwenngatz@gmail.com
Guest
Posts: n/a
 
      7th Feb 2008
On Feb 7, 9:06*am, Cliff <Ragsdal...@gmail.com> wrote:
> =AVERAGE(IF(B5:B17<>0,B5:B17)) *& enter this as an array formula via
> Ctrl+Shift+Enter
>
> or in Excel 2007
>
> =AVERAGEIF(B5:B17,"<>0")


Thanks Cliff, that worked perfectly!
 
Reply With Quote
 
GeoffWhite18
Guest
Posts: n/a
 
      7th Feb 2008
Ok so I tried that and end up with a #VALUE! error. What I'm trying to do is
find the average Through cells G2:G50 and ignor any values less than 1.
=AVERAGE(IF(G2:G50<>0,G2:G50))

"(E-Mail Removed)" wrote:

> On Feb 7, 9:06 am, Cliff <Ragsdal...@gmail.com> wrote:
> > =AVERAGE(IF(B5:B17<>0,B5:B17)) & enter this as an array formula via
> > Ctrl+Shift+Enter
> >
> > or in Excel 2007
> >
> > =AVERAGEIF(B5:B17,"<>0")

>
> Thanks Cliff, that worked perfectly!
>

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      7th Feb 2008
Thay's because it's an array formula. Type the formula in the cell then
commit it by pressing

Ctrl+Shift+Enter

If you've done it corrrectly then Excel will put curly brackets around the
formula.

Mike

"GeoffWhite18" wrote:

> Ok so I tried that and end up with a #VALUE! error. What I'm trying to do is
> find the average Through cells G2:G50 and ignor any values less than 1.
> =AVERAGE(IF(G2:G50<>0,G2:G50))
>
> "(E-Mail Removed)" wrote:
>
> > On Feb 7, 9:06 am, Cliff <Ragsdal...@gmail.com> wrote:
> > > =AVERAGE(IF(B5:B17<>0,B5:B17)) & enter this as an array formula via
> > > Ctrl+Shift+Enter
> > >
> > > or in Excel 2007
> > >
> > > =AVERAGEIF(B5:B17,"<>0")

> >
> > Thanks Cliff, that worked perfectly!
> >

 
Reply With Quote
 
GeoffWhite18
Guest
Posts: n/a
 
      7th Feb 2008
Ahh. I was doing Ctrl+Shift+Enter before I put in the formula. Works great
now! I don't know how you guys know all this stuff but going through these
threads in here has saved me a lot of headache! Thanks!!

"Mike H" wrote:

> Thay's because it's an array formula. Type the formula in the cell then
> commit it by pressing
>
> Ctrl+Shift+Enter
>
> If you've done it corrrectly then Excel will put curly brackets around the
> formula.
>
> Mike
>
> "GeoffWhite18" wrote:
>
> > Ok so I tried that and end up with a #VALUE! error. What I'm trying to do is
> > find the average Through cells G2:G50 and ignor any values less than 1.
> > =AVERAGE(IF(G2:G50<>0,G2:G50))
> >
> > "(E-Mail Removed)" wrote:
> >
> > > On Feb 7, 9:06 am, Cliff <Ragsdal...@gmail.com> wrote:
> > > > =AVERAGE(IF(B5:B17<>0,B5:B17)) & enter this as an array formula via
> > > > Ctrl+Shift+Enter
> > > >
> > > > or in Excel 2007
> > > >
> > > > =AVERAGEIF(B5:B17,"<>0")
> > >
> > > Thanks Cliff, that worked perfectly!
> > >

 
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
Re: A useful AVERAGE calculation without using the built-in AVERAGE function קובי Microsoft Excel New Users 0 3rd Feb 2011 04:25 PM
Re: A useful AVERAGE calculation without using the built-in AVERAGE function Roger Govier Microsoft Excel New Users 0 16th Jan 2011 01:20 PM
A formula to AVERAGE IF but only average a set number of values DonFlak@gmail.com Microsoft Excel Worksheet Functions 2 31st Jan 2008 08:28 PM
Find monthly average but have average automatically configured =?Utf-8?B?a2ltYmFmcmVk?= Microsoft Excel Misc 2 8th Aug 2007 12:28 AM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Microsoft Excel Worksheet Functions 13 31st Jul 2005 03:59 PM


Features
 

Advertising
 

Newsgroups
 


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