+ Reply to Thread
Results 1 to 8 of 8

Data transpose

  1. #1
    Registered User
    Join Date
    04-24-2004
    Location
    INDIA
    MS-Off Ver
    2013
    Posts
    70

    Data transpose

    Dear sir,

    I am attaching a small excel sheet and want the data as per "required". Data may be numeric also.

    I have tried by Pivot table but not successful. As data is very big, copy and transpose is not possible. I am using Excel 2013.


    Kindly suggest suitable formula.

    Thanks & Regards,

    Shubhkaran
    Attached Files Attached Files
    Last edited by kumawat_s; 06-24-2020 at 12:12 AM.

  2. #2
    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
    79,368

    Re: Data transpose

    Please update your user profile to the version that you are currently using. Thanks.
    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.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: Data transpose

    Using Power Query, you can create a Pivot Table. Here is the Mcode for that excercise.

    Please Login or Register  to view this content.
    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    G
    H
    1
    NAME 1 2 3 4 5 6 7
    2
    Bill Bananas Lemons Oranges Cherries
    3
    Craig Apples Cherries
    4
    Martha Lemons Cherries Bananas Oranges Mango Papaya grapes
    5
    Mike Cherries Pears Lemons Bananas
    6
    Sally Pears Lemons
    7
    Terry Apples Oranges Pears
    8
    Victor Oranges Bananas Apples
    Sheet: Sheet2

    Review PQ
    In the attached file
    Click on any cell in the new table
    On the Data Tab, click on Queries & Connections
    In the right window, double click to open Query
    Review PQ steps

    M-code basics:
    - "let" is the start of a query
    - "in" is the closing of a query
    - each transformation step sits in between those 2 lines
    - each step line is ended by a comma, except the last one
    - "Source" is always the first step (Source Data)
    - After "in" you have the last step referenced
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    04-24-2004
    Location
    INDIA
    MS-Off Ver
    2013
    Posts
    70

    Re: Data transpose

    Dear alansidman

    Thanks for your reply.

    unfortunately power query is not installed in my computer and I am also not aware about it.

    Could you suggest any alternate method.

    Thanks

    Shubhkaran

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,295

    Re: Data transpose

    Macro on green button.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-24-2004
    Location
    INDIA
    MS-Off Ver
    2013
    Posts
    70

    Re: Data transpose

    Thank you torachan,

    Amazing!!!!! It is working in file.

    One more thing how I can use this macro in my original file where huge data is there.

    Thanks again.

    Shubhkaran

  7. #7
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,295

    Re: Data transpose

    If the format of your file is the same, copy & paste the two columns into the file (over-paste with data starting in 'A4'
    Failing this, upload sample file with just a few rows of typical de-sensitised data.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: Data transpose

    Power Query is available to you as an add in from the Excel Web Site. Also, there are two links in my signature block you should look at to learn more about this powerful excel easy to learn feature.

    Here is the Download. https://www.microsoft.com/en-us/down....aspx?id=39379

+ 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. Replies: 4
    Last Post: 03-30-2020, 10:08 AM
  2. Replies: 4
    Last Post: 08-21-2018, 09:24 AM
  3. 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
  4. Replies: 7
    Last Post: 10-03-2014, 05:04 AM
  5. Transpose data to columns from rows keeping unique data together
    By aimeecrystalaid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2013, 12:23 AM
  6. [SOLVED] Transpose: How can I copy a list and transpose it but leaving 3 cells in between each item
    By cocolete in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-11-2012, 10:01 AM
  7. Replies: 2
    Last Post: 02-19-2007, 04:53 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