Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MadameJunk
 
Posts: n/a
Default How to obtain Averages from a list of multiple items?

Example:Excel worksheet-Column A has list of Cat or Dog (say 15 items)-Column
C has their age in days old (10,3,4,etc)
I need (2) Averages- Average age of Cats and Average Age of Dogs
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

=SUMIF(A1:A50,"cat",C1:C50)/COUNTIF(A1:A50,"cat")

Do the same for dog.

Biff

"MadameJunk" wrote in message
...
Example:Excel worksheet-Column A has list of Cat or Dog (say 15
items)-Column
C has their age in days old (10,3,4,etc)
I need (2) Averages- Average age of Cats and Average Age of Dogs



  #3   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=AVERAGE(IF($A$1:$A$15="Dog",$C$1:$C$15))

or

=AVERAGE(IF($A$1:$A$15=F1,$C$1:$C$15))

....where F1 contains your criterion, such as 'Dog'. Both formulas need
to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
"MadameJunk" wrote:

Example:Excel worksheet-Column A has list of Cat or Dog (say 15 items)-Column
C has their age in days old (10,3,4,etc)
I need (2) Averages- Average age of Cats and Average Age of Dogs

  #4   Report Post  
B. R.Ramachandran
 
Posts: n/a
Default

Hi,

Use the formulas:

=SUMPRODUCT(--($A$1:$A$100="cat")*($C$1:$C$100))/SUMPRODUCT(--(A1:A100="cat"))

=SUMPRODUCT(--($A$1:$A$100="dog")*($C$1:$C$100))/SUMPRODUCT(--(A1:A100="dog"))

Regards,
B. R. Ramachandan

"MadameJunk" wrote:

Example:Excel worksheet-Column A has list of Cat or Dog (say 15 items)-Column
C has their age in days old (10,3,4,etc)
I need (2) Averages- Average age of Cats and Average Age of Dogs

  #5   Report Post  
Alan
 
Posts: n/a
Default

=SUMPRODUCT(--(A1:A15="Cat"),--(B1:B15))/COUNTIF(A1:A15,"Cat")
Swap Dog for Cat,
Regards,
Alan.
"MadameJunk" wrote in message
...
Example:Excel worksheet-Column A has list of Cat or Dog (say 15
items)-Column
C has their age in days old (10,3,4,etc)
I need (2) Averages- Average age of Cats and Average Age of Dogs





  #6   Report Post  
bigwheel
 
Posts: n/a
Default

OK.
=COUNTIF(A1:A15,"cat") will give you the number of cats
=COUNTIF(A1:A15,"dog") will give you the number of dogs
=SUMIF(A1:A15,"cat",C1:C15) is the total age of cats
=SUMIF(A1:A15,"dog",C1:C15) is the total age of dogs
then divide total ages by numbers of cats or dogs

"MadameJunk" wrote:

Example:Excel worksheet-Column A has list of Cat or Dog (say 15 items)-Column
C has their age in days old (10,3,4,etc)
I need (2) Averages- Average age of Cats and Average Age of Dogs

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making pick list conditional on selection from previous pick list Stewart Excel Discussion (Misc queries) 1 June 27th 05 11:30 AM
subtotaling and manipulating a list of data TJN Excel Worksheet Functions 0 April 27th 05 10:31 PM
Lookup values in a list and return multiple rows of data Amanda L Excel Worksheet Functions 2 December 2nd 04 04:48 PM
How do I use multiple worksheets (List) in a Pivot Table Report? Robert Excel Worksheet Functions 1 December 2nd 04 04:16 PM
Is there a template to compile a list of users for multiple accou. camie Excel Discussion (Misc queries) 0 November 30th 04 12:39 AM


All times are GMT +1. The time now is 11:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"