+ Reply to Thread
Results 1 to 5 of 5

copy every next 10 values to next column

  1. #1
    Forum Contributor
    Join Date
    04-25-2014
    Location
    India
    MS-Off Ver
    Excel pro plus 2021
    Posts
    186

    copy every next 10 values to next column

    hello friends ,
    i have some data in column a
    number of data changes ......

    now i would like to copy value of
    from a1 to a10 to b1 to b10
    from a11 to a20 to c1 to c10
    from a21 to a30 to d1 to d10

    basically i want to copy every next 10 values in column b to column c , column d and so on ....

    please have a look at sample file attach

    thanks in advance

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: copy every next 10 values to next column

    You may try this.....
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: copy every next 10 values to next column

    Try this

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  4. #4
    Registered User
    Join Date
    08-04-2009
    Location
    Golborne England
    MS-Off Ver
    2013
    Posts
    85

    Re: copy every next 10 values to next column

    Hi,

    This code works on your sample data.

    PHP Code: 
    Sub SplitList()

    Dim FSRowSRowLSRowTrowTCol

    FSRow 
    1
    SRow 
    FSRow
    Trow 
    FSRow
    LSRow 
    ActiveSheet.Cells(ActiveSheet.Rows.Count1).End(xlUp).Row
    TCol 
    2
    For SRow FSRow To LSRow
        Cells
    (TrowTCol).Value Cells(SRow1).Value
        Trow 
    Trow 1
        
    If Trow FSRow 9 Then
            Trow 
    FSRow
            TCol 
    TCol 1
        End 
    If
    Next

    End Sub 
    Cheers,

    JimBobBowie

  5. #5
    Forum Contributor
    Join Date
    04-25-2014
    Location
    India
    MS-Off Ver
    Excel pro plus 2021
    Posts
    186

    Re: copy every next 10 values to next column

    wow , we have many experts here ....

    thanks @sktneer @mike7952 @JimBobBowie

    different ways but giving same results

+ 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] Copy a column of mixed date values and increment all values by 1 day
    By Jonj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2013, 04:05 AM
  2. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  3. [SOLVED] Loop-copy cell values from a row, and then copy them into a column
    By vukovicnikola in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2012, 06:03 AM
  4. Replies: 0
    Last Post: 09-06-2012, 04:06 AM
  5. Macro that will copy values in Column J and paste values to Column B in new sheet
    By Phixtit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2010, 04:56 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