Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Average of time spent monthly getting DIV/0 error

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.
"Teethless mama" wrote:

Try this elegant formula:

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

ctrl+shift+enter, not just enter

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Average of time spent monthly getting DIV/0 error

Hi,

Try this

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

or in 2007:

=IFERROR(AVERAGE(IF(($M88:$AT880)*(MOD(COLUMN($M8 8:$AT88),3)=1),$M88:$AT88)),"")

both array entered.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Kelway07" wrote:

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.
"Teethless mama" wrote:

Try this elegant formula:

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

ctrl+shift+enter, not just enter

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Average of time spent monthly getting DIV/0 error

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

"Shane Devenshire" wrote:

Hi,

Try this

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

or in 2007:

=IFERROR(AVERAGE(IF(($M88:$AT880)*(MOD(COLUMN($M8 8:$AT88),3)=1),$M88:$AT88)),"")

both array entered.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Kelway07" wrote:

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.
"Teethless mama" wrote:

Try this elegant formula:

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

ctrl+shift+enter, not just enter

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
something to help me track money and time spent on one specific j. Mandy Excel Discussion (Misc queries) 0 March 23rd 09 04:54 PM
Average time spent to # of events Jennifer Excel Worksheet Functions 2 December 11th 08 05:01 PM
Find monthly average but have average automatically configured kimbafred Excel Discussion (Misc queries) 2 August 8th 07 12:28 AM
How can I show time spent? L Excel Worksheet Functions 1 May 8th 06 03:13 PM
Funcation to average the Time spent subbu Excel Worksheet Functions 1 December 7th 04 09:38 AM


All times are GMT +1. The time now is 12:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"