+ Reply to Thread
Results 1 to 6 of 6

Adding Hours to a workday

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    colorado
    MS-Off Ver
    Excel 2007
    Posts
    4

    Adding Hours to a workday

    Hello again,
    I recently posted a challenge and got some great VBa responses, however I can not use Macros in my spreadsheets. Also, I figured out a better way to ask my question and I think I am getting closer.

    Given a work day of 7:00am to 7:00pm
    Given a work week of Monday thru Saturday
    can the following be done in excel:

    Date/time
    11/3/2012 5:00pm

    + 6 (hours)

    = 11/4/2012 11:00am

    Thanks in advance...

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Adding Hours to a workday

    Firstly: 6 hours added to your value would make the answer 11/3/2012 11:00 pm
    To achieve your answer, you will need to add 18 hours.

    with your cells formatted as Date/Time
    in the adjacent cell to A1 which holds your value type = A1 + (18/24)

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    03-15-2007
    Location
    AL, USA
    MS-Off Ver
    2007
    Posts
    174

    Re: Adding Hours to a workday

    This is the best I could come up with.
    You can probably end up taking a bunch of the columns out and condensing the formulas, but I'm a bit too lazy

    Quote Originally Posted by alansidman View Post
    Firstly: 6 hours added to your value would make the answer 11/3/2012 11:00 pm
    To achieve your answer, you will need to add 18 hours.

    with your cells formatted as Date/Time
    in the adjacent cell to A1 which holds your value type = A1 + (18/24)

    Alan
    He wants to incorporate 12 hour workdays. So, 11/3/2012 11:00 pm is outside of the workday, so a few hours must be carried over to the next workday.
    Attached Files Attached Files
    Last edited by mshale; 11-02-2012 at 11:36 AM.

  4. #4
    Registered User
    Join Date
    10-19-2012
    Location
    colorado
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Adding Hours to a workday

    Thanks Alan,
    I wish it was this easy. We have a lot of tasks to plan for when designing a building and the solution you describe would not really automate the process (we could not simply add the time required for the task, we would also have to track the end/begining effect on the the work day). MS Project does this sort of thing automatically, that is one of the nice features about it. The place I work will not provide this software so I am struggling with a work around.
    thanks again,
    j

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Adding Hours to a workday

    Joeinck--my apologies. I did not read your request clearly. I missed the part about the work day hours and days. I understand what you are looking for. It looks like MShale has provided an answer that works.

    Good luck.

    Alan
    Last edited by alansidman; 11-04-2012 at 08:54 AM.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Adding Hours to a workday

    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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