Averages formula/0

G

Guest

I have an entire column with #DIV/0! because it is awaiting data from
adjacent cells. The sum of the formulas result in a %.
Example:
B2 10%
B3 15%
B4 #DIV/0!
B5 #DIV/0!
B6 25%

QUESTION: How can I get the % average of B2:B6?
 
T

T. Valko

Try this:

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=AVERAGE(IF(ISNUMBER(B2:B6),B2:B6))

Format as %

You'd be better off fixing the errors so that those formulas return a blank
("") rather than the #DIV/0! error. Then a simple =AVERAGE(B2:B6) will work.

Biff
 
G

Guest

You could do that by using the formula

=AVERAGE(IF(ISNUMBER(B2:B6),B2:B6))

confirmed with CTRL+SHIFT+ENTER

althought it might be better to replace your #DIV/0! error with a blank,
allowing you to use just

=ABVERAGE(B2:B6)

If your formula in B2 is something like

=X3/B1

change to

=IF(B1,X3/B1,"")
 
G

Guest

I don't get an error but the formula results with 0% and there are % values
entered in the column.
 
S

sonicj

Just wanted to thank you all and tell anyone else looking who is dealing with
#DIV/0 the formula below is the one that works. Be certain to press
CTRL+SHIFT+ENTER once you've entered the formula and format that cell for
percentage.
 

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