Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Start Time to End Time... Minutes On Each Hour... How to distribute proportionately?

For example:
I have a start date in A1: 19/09/2010
I have a start time in B1: 05:36
I have an end time in C1: 08:59
I have a number in D1: say 13050

end time could be next day.. but not greater than 24 hours from start
time.
And, I have 100s of rows with different times

I want to use vba to do this..

In another sheet:
Date, 00, 01, 02, 03, .... 23 (representing 23 hours)

For the above data,
0500 to 0600, 24 minutes used
06 to 07, 60 minutes used
07 to 08, 60 minutes used
08 to 0859, 59 minutes used
Total Time Elapsed.. 203 minutes 100%.. (with 13,050 from D1)


And I want to share 13,050 on each hour according to the above
proportion.

in Column 05, 1542.86
in Column 06, 3857.14
in Column 07, 3857.14
in Column 08, 3792.85

So, the 2nd sheet should be populated with above numbers for each of
the corresponding hours in that columns and for the correct date.

How to distribute the 13,050 by proportion for each hour.

thanks a million for your assistance.
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 Ending time using Start Time and Elapsed Time Chief 711 Excel Worksheet Functions 5 May 13th 08 04:34 PM
Changing decimal time into 24 hour time and reverse Bobzter100 Excel Discussion (Misc queries) 4 January 25th 08 11:38 AM
Formula to find Stop Time from Start Time and Total Minutes Jonathan Bickett Excel Worksheet Functions 5 March 7th 07 05:22 PM
how to calculate time start & time finish in quarter hour Peter Wu Excel Discussion (Misc queries) 3 June 7th 06 12:58 AM
making a time a measurement of time, not an hour of the day?? small tom Excel Discussion (Misc queries) 7 January 24th 06 02:17 PM


All times are GMT +1. The time now is 04:34 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"