+ Reply to Thread
Results 1 to 4 of 4

Trying to create dynamic date/time formula

  1. #1
    Registered User
    Join Date
    11-16-2022
    Location
    Los Angeles
    MS-Off Ver
    2022
    Posts
    13

    Trying to create dynamic date/time formula

    Hello experts,

    I am trying to create a formula that adds the hours from column J to the Start date/time in column I to produce the End/Completion date/time in column K, but only counting hours between certain times of the day and excluding weekends/holidays. Please see the attached file, any help is greatly appreciated.

    Best Regards,

    Ray
    Attached Files Attached Files
    Last edited by rbaxter89; 11-16-2022 at 04:33 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Trying to create dynamic date/time formula

    Try:
    =WORKDAY(I4,CEILING(ROUND(1440*(J4/24+MOD(I4,1)-C$9)/(C$10-C$9),0)/1440,1)-1,$B$13:$B$19)+ROUND(1440*(MOD(I4,1)+J4/24),0)/1440-CEILING(ROUND(1440*(MOD(I4,1)+(J4/24-C$9)),0)/1440,ROUND(1440*(C$10-C$9),0)/1440)+C$10-C$9
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    11-16-2022
    Location
    Los Angeles
    MS-Off Ver
    2022
    Posts
    13

    Re: Trying to create dynamic date/time formula

    Thank you very much Glenn, your help is much appreciated!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Trying to create dynamic date/time formula

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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] Create conditional formatting using time / date-time
    By Halidat in forum Excel General
    Replies: 3
    Last Post: 10-13-2021, 11:12 AM
  2. Dynamic time and date to PDF?
    By billaz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-25-2019, 05:15 PM
  3. Formula to create unique ID using DATE & TIME
    By floato in forum Excel General
    Replies: 3
    Last Post: 03-21-2016, 04:13 PM
  4. Create dynamic line on chart for current date
    By thassim in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 10-10-2014, 07:21 AM
  5. Need to separate date/time from a single cell and create a date/time chart
    By slicksilver79 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 06-19-2014, 09:48 PM
  6. Replies: 3
    Last Post: 12-19-2013, 06:49 AM
  7. Macro to Create Dynamic Time stamp
    By AJSchwayze in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-06-2009, 04:52 PM

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