+ Reply to Thread
Results 1 to 10 of 10

Repeating sequence

  1. #1
    Registered User
    Join Date
    05-23-2014
    Posts
    16

    Repeating sequence

    I am trying to write a column that repeats numbers for example
    a1 1
    a2,1
    a3,1
    a4,2
    a5,2
    a6,2
    a7,3
    a8,3
    a9,3

    and so on i have 176000 entries so i just cant copy and paste

  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,723

    Re: Repeating sequence

    So, you want three cells which contain 1, and then 3 cells that contain 2, and then 3 cells which contain 3, and so on?

    You can put this in cell A4:

    =A1+1

    after you have filled A1 to A3 with 1, and then copy that formula down as far as you need to.

    Hope this helps.

    Pete

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Repeating sequence

    Another option...
    If you start on row 3...
    =INT(ROW()/3)
    copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-23-2014
    Posts
    16

    Re: Repeating sequence

    Thanks Pete, how do i get it to repeat after a couple of cells eg
    a1, 1
    a2, 1
    a3, 1
    a4, 2
    a5, 2
    a5, 2
    a6, 1
    a7, 1
    a8, 1
    a10,2
    a11,2
    a12,2

    and so on

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

    Re: Repeating sequence

    Fill cells A1:A3 with the number 1 as before, then fill cells A4:A6 with the number 2, then you can use this formula in A7 (note that you showed A5 twice in your example):

    =A1

    then copy down.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    05-23-2014
    Posts
    16

    Re: Repeating sequence

    Thanks, how do i get it to repeat after a couple of cells eg
    a1, 1
    a2, 1
    a3, 1
    a4, 2
    a5, 2
    a5, 2
    a6, 1
    a7, 1
    a8, 1
    a10,2
    a11,2
    a12,2

    and so on

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

    Re: Repeating sequence

    Isn't that exactly the same as Post #4?

    Pete

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Repeating sequence

    Your request in post #4 is not the same as your 1st post. Which 1 do you want?

  9. #9
    Registered User
    Join Date
    05-23-2014
    Posts
    16

    Re: Repeating sequence

    I want the numbers to start again after 3 not for them to keep counting

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Repeating sequence

    OK then use Pete's suggestion

    Create the 1st sequence manually, then, where the next "set" starts, reference the 1st cell and copy that down

+ 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. Autofill a pattern or repeating sequence
    By awcwa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2013, 12:04 PM
  2. Repeating a sequence
    By Slothook in forum Excel General
    Replies: 3
    Last Post: 10-28-2011, 04:05 PM
  3. Check (validate) repeating sequence
    By imimin in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-27-2010, 05:12 PM
  4. Repeating number sequence in a column
    By Nexan in forum Excel General
    Replies: 3
    Last Post: 03-31-2005, 03:06 PM
  5. [SOLVED] Repeating a sequence of numbers down a column
    By Nexan in forum Excel General
    Replies: 2
    Last Post: 03-04-2005, 02:06 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