+ Reply to Thread
Results 1 to 4 of 4

Incriment time in hours between 8AM - 9PM

  1. #1
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Incriment time in hours between 8AM - 9PM

    Hi Guys.

    I have a date in cell A1

    I need a formula to fill from A2 downwards that will fill the dates down adding 1 hour to each cell until it reaches 21:00 (9pm) then the next cell will start at 08:00 (8am) on the next day.

    So it should look like this:

    01/01/13 19:00
    01/01/13 20:00
    01/01/13 21:00
    02/01/13 08:00
    02/01/13 09:00

    Any help would be much appreciated!

    F

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Incriment time in hours between 8AM - 9PM

    Assuming A1 has your first entry, starting with A2 use

    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    copy down
    Last edited by Ace_XL; 02-19-2013 at 02:07 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Incriment time in hours between 8AM - 9PM

    I have a date in cell A1
    If you only have a start date in A1 (No time)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Or this adaption of Ace_XLs' second suggestion
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Incriment time in hours between 8AM - 9PM

    If the date and time are in A1 entered as you show with the format for column A set as dd/mm/yy h:mm enter this formula in A2 and copy down as far as you want:

    =IF(HOUR(A1)<21,A1+1/24,A1+11/24)

    Results as copied from my worksheet
    01/01/13 8:00
    01/01/13 9:00
    01/01/13 10:00
    01/01/13 11:00
    01/01/13 12:00
    01/01/13 13:00
    01/01/13 14:00
    01/01/13 15:00
    01/01/13 16:00
    01/01/13 17:00
    01/01/13 18:00
    01/01/13 19:00
    01/01/13 20:00
    01/01/13 21:00
    02/01/13 8:00
    02/01/13 9:00
    02/01/13 10:00
    02/01/13 11:00
    02/01/13 12:00

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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