AVERAGEIF Function out there?

D

davidad

Is anybody out there aware of an "AVERAGEIF" function ?.
I'm new to programming and have failed miserably trying to
write it. Any help would be great.
 
G

Guest

No need to write a function, you can use a combination of average and if
as an example

=AVERAGE(IF(Range=criteria,Range))

entered with ctrl + shift & enter


Regards,

Peo Sjoblom
 
G

Guest

davidad said:
Is anybody out there aware of an "AVERAGEIF" function ?.
I'm new to programming and have failed miserably trying to
write it. Any help would be great.

--------------------------

Peo gave you the "right" solution. Here's the more intuitive one:

[ ] = SumIf(A1:A5,">0")/CountIf(A1:A5,">0")

Obviously you'll need to substitute your own arguments into it, but it
should give you the idea.

Bill
 

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

AverageIF 6
Is there an AVERAGEIF function in excel? 5
How to refer to a range except one cell 4
AVERAGEIF Function out there? 9
averaging ranges 2
Help with another formula, please 3
For Mike H 2
AverageIF 1

Top