Average function exluding zeroes

A

ajpowers

I'm trying to get an average number using an array formula that exlude
zeroes in the data range. Tha following is the formula Microsoft Hel
game me but I get a VALUE error back:

=average(if(a2:a7<>0,a2:a7,""))

Thank
 
B

Bernie Deitrick

AJ,

That should work - though it may give an error if you haven't entered it
using Ctrl-Shift-Enter and the cell on the same row as the formula is blank,
or if all the values are strings.

HTH,
Bernie
MS Excel MVP
 

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