PC Review


Reply
Thread Tools Rate Thread

Averaging data that meets a criteria

 
 
Intuit
Guest
Posts: n/a
 
      20th Feb 2006

Hi all. I have a worksheet that has multiple entries. The entries
contain a month number (1 for jan, 2 for feb etc) in one column and
and a percentage in another. I'm trying to only average percentages in
january. Any idea how to do this? I couldn't get daverageto work.


--
Intuit
------------------------------------------------------------------------
Intuit's Profile: http://www.excelforum.com/member.php...o&userid=30901
View this thread: http://www.excelforum.com/showthread...hreadid=514543

 
Reply With Quote
 
 
 
 
Intuit
Guest
Posts: n/a
 
      20th Feb 2006

Intuit Wrote:
> Hi all. I have a worksheet that has multiple entries. The entries
> contain a month number (1 for jan, 2 for feb etc) in one column and
> and a percentage in another. I'm trying to only average percentages in
> january. Any idea how to do this? I couldn't get daverageto work.



I found this from another post, but I need the formulat to ignore cells
that state "divide by 0" or are blank.

=AVERAGE(IF($A$1:$A$200=C1,$B$1:$B$200))


--
Intuit
------------------------------------------------------------------------
Intuit's Profile: http://www.excelforum.com/member.php...o&userid=30901
View this thread: http://www.excelforum.com/showthread...hreadid=514543

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      20th Feb 2006
Is this what you want

=AVERAGE(IF(($A$1:$A$200=C1)*($B$1:$B$200<>0),$B$1:$B$200))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Intuit" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
>
> Intuit Wrote:
> > Hi all. I have a worksheet that has multiple entries. The entries
> > contain a month number (1 for jan, 2 for feb etc) in one column and
> > and a percentage in another. I'm trying to only average percentages in
> > january. Any idea how to do this? I couldn't get daverageto work.

>
>
> I found this from another post, but I need the formulat to ignore cells
> that state "divide by 0" or are blank.
>
> =AVERAGE(IF($A$1:$A$200=C1,$B$1:$B$200))
>
>
> --
> Intuit
> ------------------------------------------------------------------------
> Intuit's Profile:

http://www.excelforum.com/member.php...o&userid=30901
> View this thread: http://www.excelforum.com/showthread...hreadid=514543
>



 
Reply With Quote
 
Don
Guest
Posts: n/a
 
      20th Feb 2006
Enter as Ctrl/Shift/Enter

=AVERAGE(IF(($A$1:$A$200=$C$1)*(ISNUMBER($B$1:$B$200)),$B$1:$B$200))


Don Pistulka



"Intuit" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
>
> Intuit Wrote:
>> Hi all. I have a worksheet that has multiple entries. The entries
>> contain a month number (1 for jan, 2 for feb etc) in one column and
>> and a percentage in another. I'm trying to only average percentages in
>> january. Any idea how to do this? I couldn't get daverageto work.

>
>
> I found this from another post, but I need the formulat to ignore cells
> that state "divide by 0" or are blank.
>
> =AVERAGE(IF($A$1:$A$200=C1,$B$1:$B$200))
>
>
> --
> Intuit
> ------------------------------------------------------------------------
> Intuit's Profile:
> http://www.excelforum.com/member.php...o&userid=30901
> View this thread: http://www.excelforum.com/showthread...hreadid=514543
>



 
Reply With Quote
 
Intuit
Guest
Posts: n/a
 
      22nd Feb 2006

Bob Phillips Wrote:
> Is this what you want
>
> =AVERAGE(IF(($A$1:$A$200=C1)*($B$1:$B$200<>0),$B$1:$B$200))
>
> which is an array formula, it should be committed with
> Ctrl-Shift-Enter, not
> just Enter.
>
> --
>
> HTH
>
> Bob Phillips
>
> (remove nothere from the email address if mailing direct)
>
> "Intuit" <(E-Mail Removed)> wrote
> in
> message news:(E-Mail Removed)...
> >
> > Intuit Wrote:
> > > Hi all. I have a worksheet that has multiple entries. The

> entries
> > > contain a month number (1 for jan, 2 for feb etc) in one column

> and
> > > and a percentage in another. I'm trying to only average

> percentages in
> > > january. Any idea how to do this? I couldn't get daverageto

> work.
> >
> >
> > I found this from another post, but I need the formulat to ignore

> cells
> > that state "divide by 0" or are blank.
> >
> > =AVERAGE(IF($A$1:$A$200=C1,$B$1:$B$200))
> >
> >
> > --
> > Intuit
> >

> ------------------------------------------------------------------------
> > Intuit's Profile:

> http://www.excelforum.com/member.php...o&userid=30901
> > View this thread:

> http://www.excelforum.com/showthread...hreadid=514543
> >


That'll work, great thanks!!


--
Intuit
------------------------------------------------------------------------
Intuit's Profile: http://www.excelforum.com/member.php...o&userid=30901
View this thread: http://www.excelforum.com/showthread...hreadid=514543

 
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
Counting data that meets 3 different Criteria Jenny.S Microsoft Excel Worksheet Functions 20 23rd Jul 2009 10:20 PM
How do I count data that meets more than one criteria? numbatwombat Microsoft Excel Misc 1 1st Jul 2009 07:58 AM
SUM data if meets criteria =?Utf-8?B?Sm9zZSBNb3VyaW5obw==?= Microsoft Excel Charting 3 29th May 2007 08:06 PM
Show only data that meets a certain criteria =?Utf-8?B?Qm9i?= Microsoft Excel Misc 1 26th Jun 2006 10:01 AM
Get data if cell within a row meets criteria =?Utf-8?B?cG9tYWxsZXk=?= Microsoft Excel Misc 2 2nd Mar 2006 03:28 PM


Features
 

Advertising
 

Newsgroups
 


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