Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default Calculate number needed to maintain an average

C2 through C22 represent the work days in August. In each cell total "Talk
Time" minutes are entered manually. C23 adds these up and returns them as
hours and minutes. C25 adds all the days worked (by counting the cells in C2
through C22 that have data in them). C24 is the "Average Talk Time"
(calculated by dividing C23 by C25).

What I need is a cell that will tell me the next day's "Talk Time" would
have to be to make sure that the "Average Talk Time" in C24 maintains 3 or
more hours.

Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Calculate number needed to maintain an average

Next Value must be greater than or equal to:
=0.125*(C25+1)-C23

Note that 0.125 = 3 hrs.

Derivation:
CurrentSum/CurrentCount =3
(CurrentSum+x)/(CurrentCount +1)=3
CurrentSum+x=3*(CurrentCount +1)
x=3*(CurrentCount +1)-CurrentSum
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Eric" wrote:

C2 through C22 represent the work days in August. In each cell total "Talk
Time" minutes are entered manually. C23 adds these up and returns them as
hours and minutes. C25 adds all the days worked (by counting the cells in C2
through C22 that have data in them). C24 is the "Average Talk Time"
(calculated by dividing C23 by C25).

What I need is a cell that will tell me the next day's "Talk Time" would
have to be to make sure that the "Average Talk Time" in C24 maintains 3 or
more hours.

Thank you!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default Calculate number needed to maintain an average

"Eric" wrote in message
...
C2 through C22 represent the work days in August.
In each cell total "Talk Time" minutes are entered
manually. C23 adds these up and returns them as
hours and minutes.


English can be an ambiguous language for describing contents of Excel cells.
It would be better to show examples of data and formulas as they are
entered. These "little details" affect the solution in material ways.


If all cells contain time in the format [h]:mm, the new cell formula might
be:

=max(0, "3:00"*(C25+1) - C23)

formatted as [h]:mm.

Note: If Regional and Language settings permit a time separator other than
":" (colon), replace "3:00" with TIME(3,0,0) or 0.125.


But if you want the new cell to contain just minutes as an integer, perhaps
like C2:C22, use one of the following formulas, depending on the format of
C23:

(a) if C23 contains total time in the format [h]:mm, then:

=max(0,180*(C25+1) - C23*1440)

(b) if C23 contains total time as hours and fractional hours, then:

=max(0, 180*(C25+1) - C23*60)


In all case, the use of MAX(0,...) covers the case where current total time
(C23), in hours, exceeds 3 times the number of current workdays plus 1.

Consider the example of 7 current workdays with 3 hr 30 min of Talk Time
each. Without MAX(0,...), the formulas in #a and #b result in -30. But the
first formula ("3:00"*...) displays "###" because Excel will not display
negative time in [h]:mm format. In either case, it does not make sense for
"next day's Talk Time" to be negative time; greater than or equal to zero
covers the requirement.


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

"Eric" wrote in message
...
C2 through C22 represent the work days in August. In each cell total "Talk
Time" minutes are entered manually. C23 adds these up and returns them as
hours and minutes. C25 adds all the days worked (by counting the cells in
C2
through C22 that have data in them). C24 is the "Average Talk Time"
(calculated by dividing C23 by C25).

What I need is a cell that will tell me the next day's "Talk Time" would
have to be to make sure that the "Average Talk Time" in C24 maintains 3 or
more hours.

Thank you!


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
calculate number of day to deplete inventory without average xavier Excel Discussion (Misc queries) 1 April 3rd 09 09:43 AM
average line needed from one single cell Norbert[_2_] Charts and Charting in Excel 3 November 20th 08 02:04 PM
Average less MIN formula help needed Caribbrz Excel Discussion (Misc queries) 13 May 9th 07 02:02 AM
Calculate a 30-day moving average based on the last x number of entries and date gimiv Excel Worksheet Functions 14 July 7th 06 12:49 PM
Average Function Help Needed michaelas Excel Worksheet Functions 9 September 13th 05 01:19 AM


All times are GMT +1. The time now is 07:21 AM.

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"