+ Reply to Thread
Results 1 to 7 of 7

How to Achieve a Particular Data Layout

  1. #1
    Registered User
    Join Date
    07-10-2019
    Location
    Philippines
    MS-Off Ver
    excel 2016
    Posts
    3

    How to Achieve a Particular Data Layout

    Hello Excel Experts!

    I would like to ask your help on how to approach/ start this project.
    I have attached an excel file (Data.xlsx) and it contains input.
    I would like to know on what methods should I use in order for me to achieve the "output".

    Thank you!
    Attached Files Attached Files
    Last edited by AliGW; 07-10-2019 at 05:23 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    30,517

    Re: How to Achieve a Particular Data Layout

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    30,517

    Re: How to Achieve a Particular Data Layout

    It can be done with PowerQuery:

    1. Select the source table D4:H9.
    2. With this range selected, click on From Table ... on the Data ribbon (Get & Transform section).
    3. In the PQ window, select Column1 by clicking on its header, then go to the Transform ribbon and choose Unpivot Other from the Unpivot Columns drop-down.
    4. Select the Attribute column by clicking on its header and hit Delete.
    5. On the Home ribbon, from the Close & Load drop-down, choose Close & Load To ... and select a cell on your sheet.

    All done.

    Excel 2016 (Windows) 32 bit
    H
    I
    14
    Column1 Value
    15
    AA
    1
    16
    AA
    2
    17
    AA
    3
    18
    AA
    4
    19
    AB
    5
    20
    AB
    6
    21
    AC
    7
    22
    AD
    8
    23
    AE
    9
    24
    AE
    10
    Sheet: Sheet1

    M Code:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-10-2019
    Location
    Philippines
    MS-Off Ver
    excel 2016
    Posts
    3

    Re: How to Achieve a Particular Data Layout

    Ali,
    Thanks a lot for your help!
    Unfortunately my excel here crash when attempting to do step #2
    Anyways, this section of excel is new to me and I'll be researching the wonders of this function.

    Thank you once again and I appreaciate your help!

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    30,517

    Re: How to Achieve a Particular Data Layout

    How large is the table you are attempting to load? It shouldn't crash.

  6. #6
    Registered User
    Join Date
    07-10-2019
    Location
    Philippines
    MS-Off Ver
    excel 2016
    Posts
    3

    Re: How to Achieve a Particular Data Layout

    I think the problem is in my PC only. (gonna request IT for fix)
    I tried the method on a different PC and it works.
    Attached Images Attached Images

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    30,517

    Re: How to Achieve a Particular Data Layout

    Great! Yes, it looks like an issue with your PC. I hope they fix it for you - PowerQuery is a real Pandora's Box - loads you can do with it.

    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)

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