Find average

K

Karthik

I've 2 columns A and B of which Column A contains letters and Column B
contains Numbers. I would like to know a formula which would find the
average of column B but exclude the row if Column A contains "aaa"

Example:
aaa 10
aab 12
aac 10
aad 12
aae 10
aaf 1
aag 0
aah 11
I would want the formula to skip the 1st row which has 'aaa' in column A.

Thanks in advance.
 
J

JE McGimpsey

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=AVERAGE(IF(A1:A8<>"aaa",B1:B8))

An Alternative (normally entered):

=SUMPRODUCT(--(A1:A8<>"aaa"),B1:B8)/COUNTIF(A1:A8,"<>aaa")
 

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

Mail Merge Help 1
Number to equivalent Letter 3
Average Question 4
Having Blank Cells, etc. ? 1
Offset in Formula 1
Find value based on two lookup values 2
Numbers from first column 6
Lookup formula required 9

Top