Conditional Average

F

Fupp83

I am trying to average out numbers in a column if the number in another
column is a certain number.

1 Y 533
2 N 789
1 Y 465
2 N 222
2 Y 122
2 Y 988
1 N 812

I need a formula that only averages the figures is column C if the number in
Column A of the same row is 1. Currently I am using:
=IF(C4:C873=1,AVERAGE(M4:M873))
I get a returned value of false. Please any help is useful.
 
T

T. Valko

Try this array formula** :

=AVERAGE(IF(C4:C873=1,M4:M873))

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

Biff
 

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