How do I calculate an average if

G

Guest

Using data from a separate spreadsheet, I am trying to calculate an average
based on criteria in another column in EXCEL. Here is an example, if results
are > 20, then how do I calculate average age? Spreadsheet (1) is call all
results and Spreadsheet (2) is called scores>20

A1=21 B1=18
A2=25 B2=15
A3=18 B316
A4=16 B4=15
A5=15 B5=14
A6=10 B6=19
A7=23 B7=14
A8=24 B8=17
A9=22 B9=16
A10=12 B10=15
 
P

Peo Sjoblom

One way

=SUMIF(A1:A10,">20",B1:B10)/COUNTIF(A1:A10,">20")


you can also do it with an array formula but I suspect this is more
efficient
 

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

Top