+ Reply to Thread
Results 1 to 4 of 4

Repeating sequential pattern

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Repeating sequential pattern

    I need to do the following:

    1 a
    1 b
    1 c
    2 a
    2 b
    2 c

    but, the numbers repeat 14 times and go from 1-46. the letters will be repeating text entries. I will be using this fileCodes_SizeClass.xlsx as a table that will be used in a query in access.
    I attached the excel file. In case your are wondering, the numbers are unique id's for fish species, and the text are size classes.

  2. #2
    Forum Contributor
    Join Date
    02-15-2012
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2003
    Posts
    125

    Re: Repeating sequential pattern

    In terms of the a b c, select all three cells at once and just copy down.
    B.Econ, CFA

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Repeating sequential pattern

    In A2:

    =MOD(INT((ROW()-ROW($A$1)-1)/14),46)+1

    copied down as far as you need to get to 46

    copy one group of classes, say to D2:D15,

    then in B2:

    =INDEX($D$2:$D$15,MOD(ROW()-ROW($A$1)-1,14)+1)

    copied down same distance.

    edit: or what Roki4 said above for the text strings...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    06-07-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Repeating sequential pattern

    Thank you NBVC, you just saved me a ton of time...

+ 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