Having trouble with AVG Function

K

karto2k

Hi, sorry for noob question, but I cannot seem to make this work.

each line of my worksheet can contain from 1 to 6 entries
I want to average those but I don't know how to "turn off" the columns
that are null & therefore I get DIV/0 error.

EG:

A1 = 10, A2 = 10, A3 = 10, A4 = 10, A5 = 10, A6 = 10
B1 = 10, B2 = 10, B3 = 10
C1 = 10, C2 = 10, C3 = 10, C4 = 10

In all 3 examples, the Average is 10 (across the line, not down the
column)
I tried Nesting IF functions, eg: IF(A6=0, AVG(A1:A5), IF(A5=0,
AVG(A1:A4)) & so on

Can someone please help me figure out a formula that will average the
line items & ignore the blank cells

thanks a ton,

Kart
 
D

Dav

Average does ignore the blank items, the problem is that if all the
items are blank you will get #div/0!

if your formula is if(iserror(average(a1:a5)),""average(a1:a5)) thaty
should turn all the div/0 to blank

Regards

Dav
 

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