+ Reply to Thread
Results 1 to 13 of 13

Excel Tranpose Text from Columns to Rows

  1. #1
    Registered User
    Join Date
    11-09-2018
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    31

    Excel Tranpose Text from Columns to Rows

    Hello all,

    This is a little bit complicate issue and I have been racking my brain to see how I do this in excel. The first tab "RawData" is sample of three accounts (which I have about 7,000). I would like to see how I can transpose from the RawData to how it should look in the "FinalData" tab. I would greatly appreciate anyone help on this issue. Thank you so much in advance!
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel Tranpose Text from Columns to Rows

    I am a little confused.

    In the 'FinalData' sheet column C sometimes blanks are included and sometimes not. I do not see a pattern to the expected results.

    Please enlighten me.
    Dave

  3. #3
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,882

    Re: Excel Tranpose Text from Columns to Rows

    This can be done quickly and easily with PowerQuery.

    1. Load the data into the PQ editor (if you don't know how to do this, tell me).
    2. With the first column selected, unpivot other columns (on the Transform ribbon).
    3. Filter out blanks from the third column.
    4. Close and load.
    Attached Files Attached Files
    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.

  4. #4
    Registered User
    Join Date
    11-09-2018
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    31

    Re: Excel Tranpose Text from Columns to Rows

    Hello Ali,

    First time hearing about "Load the data into the PQ editor" so would you please explain. I will try to look it up on Google too. But the result is exactly what I wanted and you even took out all the blank field too. That is so great. Thank you so much!

  5. #5
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,882

    Re: Excel Tranpose Text from Columns to Rows

    So, to load into the PQ editor, drag select the entire range of cells in the relevant grid on your master worksheet, then click on the From Table/Range icon on the Data ribbon (in the Get & Transform section). Then follow the instructions above.

    I suggest you practise doing this from your original file, NOT my sample.

    PS Close & Load is on the Home ribbon in the PQ editor.

  6. #6
    Registered User
    Join Date
    11-09-2018
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    31

    Re: Excel Tranpose Text from Columns to Rows

    Hello Dave,

    The account is account for every month from 1/12012 to 12/1/2017. Every month in accounted for the account in a model. So one the account is Not in Firm (i.e. closed), then the month follow is blank. Thank you for looking into my question.

  7. #7
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,882

    Re: Excel Tranpose Text from Columns to Rows

    See post #5 - the Unpivot Other is accessed via the drop-down on the Unpivot icon.

  8. #8
    Registered User
    Join Date
    11-09-2018
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    31

    Re: Excel Tranpose Text from Columns to Rows

    I will try in 30 minutes when I have a chance but how to or what do you mean by drag select the entire range of cells in the relevant grid "on your master worksheet?" How do I do that? Thanks!

  9. #9
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,882

    Re: Excel Tranpose Text from Columns to Rows

    In other words, select cells A1 to BU11 so they are highlighted before clicking on the From Table/Range button - the whole range needs to be loaded.

    I'll be back later on to see how you have got along.

  10. #10
    Registered User
    Join Date
    11-09-2018
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    31

    Re: Excel Tranpose Text from Columns to Rows

    I am using Excel 2013, I cannot find the Unpivot icon?

    I cannot find "Form Table" from the power query icon. Again, please let me know if this option in not available in excel 2013 version. Thank you!

    It looks like I have to download Power Query for excel 2013. I will look up how to do that than I will try again your suggestion.

    So I have to wait for technology approval to download excel add-ins for Power Query as I do not see the option in the add-ins when I open excel 2013. So I will try once I get the add-ins Power Query. Thank you!
    Last edited by lhp2019; 04-19-2019 at 07:14 AM.

  11. #11
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,882

    Re: Excel Tranpose Text from Columns to Rows

    My apologies - it is not standard in 2013, however you can download and install it for FREE - instructions here: https://www.excelcampus.com/install-power-query/

    The From Table/Range icon is in Excel itself once you have the PQ add-in installed.

    The Unpivot icon is on the Transform ribbon in the PQ window.

    Download PowerQuery here: https://www.microsoft.com/en-us/down....aspx?id=39379
    Last edited by AliGW; 04-19-2019 at 07:43 AM.

  12. #12
    Registered User
    Join Date
    11-09-2018
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    31

    Re: Excel Tranpose Text from Columns to Rows

    Ali,

    Unfortunately, it takes a few days to get approval to download add-ins (yike!). I want to thank you for all your instructions and I will try it once I get the approval. On a side note, I use Tableau to do the pivot column and it works out as well. Have a great day!!!

  13. #13
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,882

    Re: Excel Tranpose Text from Columns to Rows

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

+ 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] Tranpose Column to Rows with 4 items
    By johnreid7477 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-19-2016, 01:19 AM
  2. Convert Text (in rows) to Excel (columns and rows)
    By Marlon123 in forum Excel General
    Replies: 3
    Last Post: 08-24-2015, 01:17 PM
  3. Tranpose rows and columm
    By jiggaboi in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-31-2013, 07:50 AM
  4. Replies: 3
    Last Post: 05-14-2013, 11:46 AM
  5. Tranpose column to rows with header
    By dennismiro in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-13-2012, 02:13 AM
  6. Tranpose columns to Rows
    By beardiebeardie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2008, 12:05 AM
  7. [SOLVED] Open txt file with more than 256 columns (how to tranpose in rows)?
    By uriel78 in forum Excel General
    Replies: 1
    Last Post: 02-11-2005, 11:06 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