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 each month

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.

Example : April 120 min, May - 135 min, June 105 min
(Time is in minutes)

=IF(SUM($M$88,$P$88,$S$88,$V$88,$Y$88,$AB$88,$AE$8 8,$AH$88,$AK$88,$AN$88,$AQ$88,$AT$88)<=0,"",AVERAG E($M$88,$P$88,$S$88,$V$88,$Y$88,$AB$88,$AE$88,$AH$ 88,$AK$88,$AN$88,$AQ$88:$AT$88))

The above gives me the average of 30 min rather than 120 min. Please advise

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Average of time each month

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


"Kelway07" wrote:

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.

Example : April 120 min, May - 135 min, June 105 min
(Time is in minutes)

=IF(SUM($M$88,$P$88,$S$88,$V$88,$Y$88,$AB$88,$AE$8 8,$AH$88,$AK$88,$AN$88,$AQ$88,$AT$88)<=0,"",AVERAG E($M$88,$P$88,$S$88,$V$88,$Y$88,$AB$88,$AE$88,$AH$ 88,$AK$88,$AN$88,$AQ$88:$AT$88))

The above gives me the average of 30 min rather than 120 min. Please advise

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Average of time each month

"Kelway07" wrote:
Example : April 120 min, May - 135 min, June 105 min
[....]
=IF(SUM($M$88,$P$88,$S$88,$V$88,$Y$88,$AB$88,$AE$8 8,$AH$88,$AK$88,$AN$88,$AQ$88,$AT$88)<=0,
"",
AVERAGE($M$88,$P$88,$S$88,$V$88,$Y$88,$AB$88,$AE$8 8,$AH$88,$AK$88,$AN$88,$AQ$88:$AT$88))

The above gives me the average of 30 min rather than 120 min.


If you copy-and-pasted your formula exactly as it is written in the
worksheet, the problem might be the colon (":") near the end. I suspect it
should be a comma (',"); that is, you would write $AQ$88,$AT$88 instead of
$AQ$88:$AT$88.

If that does not explain the unexpected result, I suggest that you use Tools
Formula Auditing Evaluate Formula (in Excel 2003) to see if that shows

you what is wrong.


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.


No, not if by not "populated", you mean it appears blank. See the help page
for the AVERAGE function. It states: "If an array or reference argument
contains text, logical values, or empty cells, those values are ignored;
however, cells with the value zero are included."


PS: This is just an academic exercise because I think the array formula
suggested by "Teethless Mama" is the better way to go; and by coincidence,
it will probably avoid whatever error you have in your formula.


----- original message -----

"Kelway07" wrote in message
...
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.

Example : April 120 min, May - 135 min, June 105 min
(Time is in minutes)

=IF(SUM($M$88,$P$88,$S$88,$V$88,$Y$88,$AB$88,$AE$8 8,$AH$88,$AK$88,$AN$88,$AQ$88,$AT$88)<=0,"",AVERAG E($M$88,$P$88,$S$88,$V$88,$Y$88,$AB$88,$AE$88,$AH$ 88,$AK$88,$AN$88,$AQ$88:$AT$88))

The above gives me the average of 30 min rather than 120 min. Please
advise


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Average of time each month

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

"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


"Kelway07" wrote:

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.

Example : April 120 min, May - 135 min, June 105 min
(Time is in minutes)

=IF(SUM($M$88,$P$88,$S$88,$V$88,$Y$88,$AB$88,$AE$8 8,$AH$88,$AK$88,$AN$88,$AQ$88,$AT$88)<=0,"",AVERAG E($M$88,$P$88,$S$88,$V$88,$Y$88,$AB$88,$AE$88,$AH$ 88,$AK$88,$AN$88,$AQ$88:$AT$88))

The above gives me the average of 30 min rather than 120 min. Please advise

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
Help with Weighted Average Per Month Terry Excel Worksheet Functions 0 October 3rd 07 07:29 PM
Average Less a Month Jani Excel Discussion (Misc queries) 4 September 26th 07 09:04 PM
12 Month Average Dewayne Excel Worksheet Functions 10 November 6th 06 09:18 PM
=AVERAGE(IF(INT(MONTH(C:C)+2/3)=4 kathi Excel Worksheet Functions 5 February 28th 06 10:55 AM
Average starting with first month Jim Excel Discussion (Misc queries) 7 October 29th 05 12:48 PM


All times are GMT +1. The time now is 10:28 AM.

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

About Us

"It's about Microsoft Excel"