Need to average with conditions attached

F

flumpuk

Hi

I have a shed load of data on spreadsheest to analyse

They are laid out as follows

Coumn A is a list of locations . There are 84 locations but 1500
entries.
Coulmn B is a a list of numbers relating to the location next to it in
column A.

I need to average all the numbers in column b where colum A meets a
certain criteria.

Sample data

London 12
Glasgow 13
London 11
London14
Newcastle 13
Glasgow 12

And so on


How do I do this in excel 2003. I know in Excel 2007 we have AVERAGEIF
but not in excel 2003
 
G

Guest

You could also use the following functions to calculate your average:

=SUMIF(A1:A7,"=London",B1:B7)/COUNTIF(A1:A7,"=London")

However, the array formula in JW's prior post is by far the more elegant of
the two.

If you use the above formula, just click on TOOLS/ADD INS and verify that
the Analysis Toolpack has been checked on.
 

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