+ Reply to Thread
Results 1 to 5 of 5

Dates to change with times

  1. #1
    Forum Contributor
    Join Date
    06-20-2012
    Location
    Derby
    MS-Off Ver
    Excel 2010
    Posts
    381

    Dates to change with times

    Hi All,

    On the attached sheet I have a date and time column.

    The start date and time is in K3 and L3.

    How can I automate the date so that the first instance of it going past midnight it changes to the following day?

    Thanks
    Jake
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Dates to change with times

    Change the formula in L4 to this:

    =MOD(L3+1/48,1)

    and copy this down. Then you can have this formula in K4:

    =K3+(L4<L3)

    and copy that down.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    06-20-2012
    Location
    Derby
    MS-Off Ver
    Excel 2010
    Posts
    381

    Re: Dates to change with times

    Thank you Pete, as helpful as ever!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Dates to change with times

    Not worth a click on the "star", then?

    Pete

  5. #5
    Forum Contributor
    Join Date
    06-20-2012
    Location
    Derby
    MS-Off Ver
    Excel 2010
    Posts
    381

    Re: Dates to change with times

    I did... I'll do you another one!

+ 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. If a search term can be found 1 time, 2 times 3 times 4 times 5 times
    By excelcandy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2013, 09:57 PM
  2. [SOLVED] Adding dates and times to dates and times
    By JohnDowds in forum Excel General
    Replies: 2
    Last Post: 06-10-2012, 12:22 AM
  3. Comparing dates/times 'within' set dates/times
    By JimFiggs in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-05-2010, 05:57 PM
  4. [SOLVED] Count times between 2 times and 2 dates
    By Jeremy Ellison in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2005, 09:35 PM
  5. Dates and times with PST,PDT
    By oilers in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM

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