averaging on an "if" or "sumproduct"

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

Guest

I have the following:
Column A has names, column B has numbers.
I want to average the numbers in column B, only if the name is "Nick".

Thanks for any help you can give!
 
Nancy,

Type in this formula where you want the result.

=AVERAGE(IF(A2:A8="Nick",B2:B8,""))

This is an array formula so commit with Ctrl-Shift-Enter which will
result in

{=AVERAGE(IF(A2:A8="Nick",B2:B8,""))}



Cheers,

Steve
 
=AVERAGE(IF(A2:A20="Nick",B2:B20))

as an array formula, so commit with Ctrl-Shift-Enter


--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Similar Threads


Back
Top