+ Reply to Thread
Results 1 to 7 of 7

How to transpose a 2-column vert range to a new row

  1. #1
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    How to transpose a 2-column vert range to a new row

    hi

    so i have a small 2-column vertical range from EA2:EB11, which user inputs data into the cool blue filled ranges every day.

    After entering these data every time in EA2:EB11, the user needs to click on the macro button to transpose these entire set of data to a consecutive new single row (see fig1).

    My code below is not accomplishing this:

    Please Login or Register  to view this content.

    Done right, the pasted rows should keep expanding downwards (see fig2).



    Can anyone kindly offer a code that can do this ?

    att: workbook
    Stewart
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,623

    Re: How to transpose a 2-column vert range to a new row

    Can't look at it just now, but I think you'd need a loop. For each row, copy the source pairs into the destination array, incrementing the target index by 2 each time through the loop.

    So, row 1, entries 1 and 2 go in 1 and 2; row 2, entries 1 and 2 go in 3 and 4; row 3, entries 1 and 2 go in 5 and 6; etc.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: How to transpose a 2-column vert range to a new row

    hi TMS

    i'm hoping to avoid a loop method as my PC isn't as fast as it used to be. Isn't there any other ways to change maybe this line ?

    Please Login or Register  to view this content.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,300

    Re: How to transpose a 2-column vert range to a new row

    'm hoping to avoid a loop method as my PC isn't as fast as it used to be
    Will take less than a second...Such a small dataset...A cell loop will even work...

    Anyway...Here no loop option...
    Please Login or Register  to view this content.
    Last edited by sintek; 09-29-2021 at 08:16 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  5. #5
    Forum Contributor
    Join Date
    10-08-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    326

    Re: How to transpose a 2-column vert range to a new row

    Thank You very much sintek, your code .. superb, worked perfectly

    out of the water lifting an X-wing fighter it is like

    cheers
    Stewart
    Last edited by MannStewart; 09-29-2021 at 09:10 AM.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,438

    Re: How to transpose a 2-column vert range to a new row

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,300

    Re: How to transpose a 2-column vert range to a new row

    ..........................
    Thanks.png

+ 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] transpose/convert range of rows and columns to one column, removing blanks
    By loganpmgoa in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-13-2019, 01:49 PM
  2. [SOLVED] Copy a range And transpose after every 9th column
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2017, 11:27 AM
  3. A Simple Formula/Helper Column To Transpose a Range
    By chullan88 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-24-2016, 09:09 AM
  4. [SOLVED] Use the TRANSPOSE() function to transpose a range as an input to the UDF
    By alice2011 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-09-2015, 09:35 PM
  5. transpose column to a range calculate and transpose to new table loop
    By moshro1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-02-2015, 10:52 AM
  6. Transpose Data from a Particular Column to Multiple Column whose Range is Non-Continuous!
    By Rajeshkumar R in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:47 AM
  7. transpose a range to a single column
    By Jeff in forum Excel General
    Replies: 7
    Last Post: 06-15-2006, 09:55 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