+ Reply to Thread
Results 1 to 6 of 6

Two columns with incremental numbers and repaeting pattern

  1. #1
    Registered User
    Join Date
    12-30-2016
    Location
    Italy
    MS-Off Ver
    2010
    Posts
    2

    Two columns with incremental numbers and repaeting pattern

    I am trying to create two columns.
    The first column will have integers from 1 to 2000 and each integer repeats 6 times, so the first column entries would be 1,1,1,1,1,1, 2,2,2,2,2,2 etc up to 2000.
    The second column needs to have the numbers: 1, 2,3,4,5,6 repeating over and over.
    So it would look as follows:

    1 1
    1 2
    1 3
    1 4
    1 5
    1 6
    2 1
    2 2
    2 3
    2 4
    2 5
    2 6

    and so forth. Is there an easy way to do this?

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

    Re: Two columns with incremental numbers and repaeting pattern

    IN A1, copied down:
    =INT((ROWS($A$1:A1)-1)/6)+1

    In B1, copied down:
    =MOD((ROWS($B$1:B1)-1),6)+1
    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
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Two columns with incremental numbers and repaeting pattern

    A1
    Please Login or Register  to view this content.
    b1
    Please Login or Register  to view this content.
    try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

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

    Re: Two columns with incremental numbers and repaeting pattern

    Hi Siva, You must be a bit sleepy today!! I beat you to it!!

  5. #5
    Registered User
    Join Date
    12-30-2016
    Location
    Italy
    MS-Off Ver
    2010
    Posts
    2

    Re: Two columns with incremental numbers and repaeting pattern

    Hi Glen, this worked perfectly.

  6. #6
    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,434

    Re: Two columns with incremental numbers and repaeting pattern

    You're welcome.

+ 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] Incremental House Numbers
    By kumarin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-07-2015, 05:55 AM
  2. Repaeting the same value in raw lable
    By Liju144 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-11-2014, 12:49 AM
  3. Help with Macro code- Incremental Numbers
    By dmighty in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2013, 07:11 AM
  4. [SOLVED] Assign incremental numbers to matching Invoice numbers
    By berger01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2013, 10:54 AM
  5. How do extract numbers with a pattern from a list of numbers ?
    By kcolraw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2012, 04:04 AM
  6. Re-generating incremental numbers
    By razaas in forum Excel General
    Replies: 4
    Last Post: 09-05-2011, 04:13 AM
  7. Fill range with incremental numbers
    By Jaymond Flurrie in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-26-2008, 01:13 AM

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