+ Reply to Thread
Results 1 to 10 of 10

time calculation

  1. #1
    Registered User
    Join Date
    08-19-2014
    Location
    atlanta, ga, usa
    MS-Off Ver
    2007
    Posts
    9

    time calculation

    I have the following portion of a spreadsheet:

    CP = 00:15

    ready
    time rank start end
    9:30 4
    8:30 2 8:30 8:45
    8:00 1 8:00 8:15
    8:35 3 8:45 9:00
    10:00 5

    The "ready time" is calculated from a spreadsheet schedule and cannot be resorted. The rank is calculated using vlookup from the same schedule. The rank changes based on the "ready time".

    I need for excel to (1)recognize the rank (1,2,3,...), (2)locate the first "1" rank time and place it into the "start" column, (3)add the "start" time to the "CP" time and place it in the "end" column
    (8:00 + 00:15 = 8:15). (4)Excel should then recognize rank "2". If the "end" time of rank "1" is less than the "ready time" for rank "2" then the "ready time" should be used in the "start" time
    for rank "2" (8:15<8:30 then use 8:30). (5)The "CP" time is to be added to rank "2" "start" time and put it into the "end" column (8:30+00:15=8:45). (6)Excel should then recognize the next rank "3".
    (7)If the "end" time of rank "2" is greater than the "ready time" of rank "3" then use the "end" time of "2" as the "start" time of "3" (8:45>8:30 then use 8:45). (8)Add the "CP" time to it to get the
    end time (8:45+00:15 = 9:00). Continue in this fashion until all times are filled.

  2. #2
    Forum Contributor
    Join Date
    06-28-2004
    MS-Off Ver
    Home/Office 2016
    Posts
    246

    Re: time calculation

    is this what you're looking for?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-19-2014
    Location
    atlanta, ga, usa
    MS-Off Ver
    2007
    Posts
    9

    Re: time calculation

    I'm afraid not. The cell data is more dynamic than what your solution reflects. The solution would have both the "start" and "end" cells recognize the change in rank in order to sum the values in the order of rank and based on the succeeding rank's "ready time and the "end" times. I believe the solution will require a vb script solution but I'm not versed enough to develop it.

    Thanks for your help

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: time calculation

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: time calculation

    Please find the attached sheet to see if this works as per your requirement.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  6. #6
    Registered User
    Join Date
    08-19-2014
    Location
    atlanta, ga, usa
    MS-Off Ver
    2007
    Posts
    9

    Re: time calculation

    excelforumfile.xlsx
    please note that:
    the "before" tab is the fully functioning spread sheet.
    the "after" tab is the section needing help only. i've also hilited this in "before"
    "F9" will change the data (times and place in queue)
    as the data changes the "start" and "end" times must reflect these changes
    if the "end" time of the preceding "place in queue" time (say #3) is greater than the next "ready time" (#4)then use #3's "end" time
    otherwise use #4's "time ready"

  7. #7
    Registered User
    Join Date
    08-19-2014
    Location
    atlanta, ga, usa
    MS-Off Ver
    2007
    Posts
    9

    Re: time calculation

    Attachment 340884
    please note that:
    the "before" tab is the fully functioning spread sheet.
    the "after" tab is the section needing help only. i've also hilited this in "before"
    "F9" will change the data (times and place in queue)
    as the data changes the "start" and "end" times must reflect these changes
    if the "end" time of the preceding "place in queue" time (say #3) is greater than the next "ready time" (#4)then use #3's "end" time
    otherwise use #4's "time ready"

  8. #8
    Registered User
    Join Date
    08-19-2014
    Location
    atlanta, ga, usa
    MS-Off Ver
    2007
    Posts
    9

    Re: time calculation

    one more thing, the "end" time (starting at L30) should be the "start" time + the "CP time" (cell B14)

  9. #9
    Registered User
    Join Date
    09-18-2014
    Location
    ireland
    MS-Off Ver
    8
    Posts
    17

    time calculation

    Hi Everyone,

    I have an excel spreadsheet where the time is represented as 1.30 and I want to convert it to 1:30,can you please help me to do this.

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: time calculation

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  11. #11
    Registered User
    Join Date
    09-18-2014
    Location
    ireland
    MS-Off Ver
    8
    Posts
    17

    Re: time calculation

    My apologies,how I do I start a new thread?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Time entry on UserForm displaying inccorectly and calculation not working on the time.
    By Colin Smit in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2014, 01:21 PM
  2. Payroll time sheet calculation where time exceeds 24 hours
    By Rolo1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-23-2014, 08:57 AM
  3. [SOLVED]Time/Date calculation to check response time
    By tailz in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-01-2013, 10:20 AM
  4. Replies: 11
    Last Post: 05-20-2011, 02:09 PM
  5. Specific time period calculation from a time range
    By Khaldon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2011, 06:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1