sumif function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello -
I have a range of names in column A and a range of ages in column B. How
can I determine the average age per unique name?
 
Use this formula in C1 and copy down to bottom of your range
=SUMPRODUCT(--($A$1:$A$1000=A1),--($B$1:$B$1000))/SUMPRODUCT(--($A$1:$A$1000=A1),--($B$1:$B$1000<>""))
 
=AVERAGE(IF(NameRange=Name,AgeRange))

which must be confirmed with control+shift+enter, not just with enter.
Note also that this type of formulas do not admit whole column refernces
like A:A as range.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top