+ Reply to Thread
Results 1 to 9 of 9

Repeat a series of times

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-25-2012
    Location
    U.K
    MS-Off Ver
    Excel 2016
    Posts
    101

    Repeat a series of times

    Hi,

    How can i use a formula to repeat a sequence of time from 08:00 to 17:00. The result should look like below.

    08:00 09:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 17:00 8:00 9:00 and so on.

    I have tried using =MOD but with no luck.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,753

    Re: Repeat a series of times

    Which version of Excel are you using?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,753

    Re: Repeat a series of times

    If you have 365:

    =SEQUENCE((A2*24)-(A1*24)+1,,A1,1/24)

    Formatting for column C will be TIME.

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    1
    08:00
    08:00:00
    2
    17:00
    09:00:00
    3
    10:00:00
    4
    11:00:00
    5
    12:00:00
    6
    13:00:00
    7
    14:00:00
    8
    15:00:00
    9
    16:00:00
    10
    17:00:00
    Sheet: Sheet1

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,135

    Re: Repeat a series of times

    How about
    Formula: copy to clipboard
    =TIME(MOD(COLUMNS($A1:A1)-1,10)+8,0,0)
    dragged across

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,753

    Re: Repeat a series of times

    Non-365

    In E1:

    =A1

    In E2 copied down:

    =IFERROR(IF(E1+1/24>$A$2,"",E1+1/24),"")
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,396

    Re: Repeat a series of times

    Office 365:

    =(MOD(SEQUENCE(200,,0),10)+8)/24

  7. #7
    Forum Contributor
    Join Date
    06-25-2012
    Location
    U.K
    MS-Off Ver
    Excel 2016
    Posts
    101

    Re: Repeat a series of times

    Thank you for the help.

    All sorted.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,753

    Re: Repeat a series of times

    Glad to have helped.

    If you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,135

    Re: Repeat a series of times

    Glad to help & thanks for the feedback.

+ 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] No of times should repeat
    By sathishkm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2020, 05:07 PM
  2. [SOLVED] Repeat formula X times - once X times has been achieved then Y - repeat X again
    By jonnym28 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-25-2015, 11:53 AM
  3. Replies: 4
    Last Post: 03-08-2014, 08:01 AM
  4. Repeat Value X given times
    By rafaelcpaiva in forum Excel General
    Replies: 3
    Last Post: 03-06-2014, 11:03 PM
  5. [SOLVED] How to repeat the series of numbers
    By Latha Mani in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 01-07-2014, 05:55 AM
  6. Repeat series
    By mets3145 in forum Excel General
    Replies: 0
    Last Post: 03-16-2008, 08:51 PM
  7. [SOLVED] Repeat series of formulas
    By GettingThere in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2005, 02: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