+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : To repeat a particular pattern in excel

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

    Unhappy To repeat a particular pattern in excel

    Hi,
    I have an excel sheet having the values as given below

    1 4 7 10
    2 5 8 11
    3 6 9 12

    but i want it to be like

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12

    This is just an example.My actual requirement is 10000's of data like this.Is there is any formula to repeat this kind of pattern.
    Attached Images Attached Images

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: To repeat a particular pattern in excel

    Hi noufelnbacker

    Welcome to the forum.

    Select any cell in your data and try below code :-

    Please Login or Register  to view this content.
    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    07-06-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: To repeat a particular pattern in excel

    Hi dilipandey

    Thanks for the help,however i am new into this macro field.I just created a new macro and copy pasted the code you gave and run the macro.but no result was coming.I am not sure whether i have done it the right way.Can u please explain regarding the execution of this macro?

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: To repeat a particular pattern in excel

    Hi noufelnbacker,

    Open your excel workbook, select any cell in your data, press Alt + F11, Insert -> Module and paste above code.
    Now press Alt + F8 and choose the macro "copy" and click on Run.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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