-1

I want to compute the average over one column if the text in another column matches a certain text.

eg:

A      B      C
aa     6      =AVERAGEIF(B1:B6;EXACT(A1:A6;"aa"))
bb     15  
aa     8  
bb     17  
cc     1  
aa     5  

But the value in C gets 1. Why? How can I do what I want?

thedarkside ofthemoon
  • 2,251
  • 6
  • 31
  • 48

1 Answers1

1

I would suggest using the AVERAGEIFS() function instead of AVERAGEIF(). See below:

=AVERAGEIFS(B1:B6,A1:A6,"aa")

This will yield as result of 6.3333.

Cheers.

Derrik
  • 1,053
  • 7
  • 10