Average with multiple conditions

D

Dez

Hi how do i take the avearage of numbers in one column, with conditions being
satisfied in two other different colums?

this is what i've tried but it's just not working;

AVERAGE(IF(AND($B$2:$B$1931="2000"),$C$2:$C$1931="1",$D$2:$D$1931))

could someone please help. thanks!
 
T

T. Valko

Try this array formula**:

=AVERAGE(IF((B2:B1931=2000)*(C2:C1931=1),D2:D1931))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)
 
D

Dez

that worked. thanks heaps!!

T. Valko said:
Try this array formula**:

=AVERAGE(IF((B2:B1931=2000)*(C2:C1931=1),D2:D1931))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)
 

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