+ Reply to Thread
Results 1 to 6 of 6

How to transpose a single column into individual rows based on a similar data?

  1. #1
    Registered User
    Join Date
    02-18-2017
    Location
    Iran
    MS-Off Ver
    2019
    Posts
    19

    How to transpose a single column into individual rows based on a similar data?

    Suppose that we have a column including a million rows like this:

    12
    56
    35
    17
    130
    XYZ 1
    XYZ 2
    3
    93
    55
    XYZ 3
    12
    XYZ 4
    156
    83
    15
    12
    XYZ 5

    How to transpose this single column into individual rows based on a XYZ i? Like this:

    XYZ 1 12 56 35 17 130
    XYZ 2
    XYZ 3 3 93 55
    XYZ 4 12
    XYZ 5 156 83 15 12


    Here is a solution but I couldn't edit the code to solve my own problem:
    "How to transpose variable data from column A to multiple rows"


    Any help would be greatly appreciated.
    Last edited by sushiant; 09-12-2020 at 02:45 PM.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: How to transpose a single column into individual rows based on a similar data?

    Hi sushiant,

    Here's one way:

    Please Login or Register  to view this content.
    Note if do actually have a million rows (from Excel 2007 each sheet "only" has a maximum 1,046,576 rows) it will take some time to run.

    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    02-18-2017
    Location
    Iran
    MS-Off Ver
    2019
    Posts
    19

    Re: How to transpose a single column into individual rows based on a similar data?

    Thanks, you're a genius. well done, it works great.

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: How to transpose a single column into individual rows based on a similar data?

    You're welcome

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: How to transpose a single column into individual rows based on a similar data?

    Try this code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,464

    Re: How to transpose a single column into individual rows based on a similar data?

    Quote Originally Posted by sushiant View Post
    Suppose that we have a column including a million rows like this:
    For such bulky data
    Please Login or Register  to view this content.

+ 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] VBA To Transpose Values In Rows To Single Column
    By Hillster in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-21-2019, 04:49 PM
  2. [SOLVED] Transpose similar IDs in single row
    By KingTamo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-20-2017, 07:03 AM
  3. Transpose column data to individual rows, while repeating certain cells per row
    By NightmanCometh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2017, 01:40 AM
  4. Replies: 5
    Last Post: 06-18-2014, 05:33 PM
  5. Transpose Multiple Rows into a Single Column
    By vnascimento in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-04-2013, 08:47 AM
  6. How to transpose a column based on similar values
    By tdunford7 in forum Excel General
    Replies: 4
    Last Post: 02-28-2012, 12:51 AM
  7. Transpose muliple rows to single column
    By randinator in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-01-2011, 12:57 PM

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