Average of time spent monthly getting DIV/0 error


K

Kelway07

Teethless Mama, your formula worked for most part but I am getting DIV/0
error on worksheets with no data. Please advise

I am trying to get an average of time spent each month on an activity. The
spreadsheet has 12 months and only 3 of the months are populated.I think it
is still counting months 4-12 in my average. As each months time is entered
I
want it to recalculate the average.
:

Try this elegant formula:

=AVERAGE(IF(($M$88:$AT$88>0)*(MOD(COLUMN($M$88:$AT$88),3)=1),$M$88:$AT$88))

ctrl+shift+enter, not just enter
 
Ad

Advertisements

S

Shane Devenshire

Hi,

Try this

=IF(SUM(IF(($M88:$AT88>0)*(MOD(COLUMN($M88:$AT88),3)=1),$M88:$AT88))=0,"",AVERAGE(IF(($M88:$AT88>0)*(MOD(COLUMN($M88:$AT88),3)=1),$M88:$AT88)))

or in 2007:

=IFERROR(AVERAGE(IF(($M88:$AT88>0)*(MOD(COLUMN($M88:$AT88),3)=1),$M88:$AT88)),"")

both array entered.
 
Ad

Advertisements

K

Kelway07

Shane thank you! One last snag - this is calculating minutes. I want to
present in Hours, where would I "/60" in the formula?
 

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