+ Reply to Thread
Results 1 to 6 of 6

Unwanted ordering Columns

  1. #1
    Registered User
    Join Date
    08-14-2019
    Location
    Netherlands
    MS-Off Ver
    2019
    Posts
    36

    Smile Unwanted ordering Columns

    Good morning experts !

    I'm looking for help with my excel file. I've got Table that i need to Pivot by power query, after all my Property columns are ordered by A- Z that i don't want. I want to stay like before but i dont know how to stop order it in query. Below is file with marks what i need , and how its look now
    If someone could help me that would really help me
    Attached Files Attached Files
    Last edited by Vixx1; 11-19-2020 at 06:39 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11)
    Posts
    52,093

    Re: Unwanted ordering Columns

    Add an INDEX column before you pivot, then remove it again:

    Please Login or Register  to view this content.
    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    1
    ID Property colour engine version
    2
    1
    car X
    3
    1
    - car1
    4
    1
    - car2 X
    5
    2
    car
    6
    2
    - car1 X
    7
    2
    - car2
    Sheet: After(unwanted_result)
    Last edited by AliGW; 11-19-2020 at 05:40 AM.
    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
    Registered User
    Join Date
    08-14-2019
    Location
    Netherlands
    MS-Off Ver
    2019
    Posts
    36

    Re: Unwanted ordering Columns

    Hi AliGW,

    almost perfect ! What i miss sometimes per 1 ID there are 2-3 value for 1 property like : Propert car contain 2 fields : colour and engine,
    then my pivot output 2-3 rows per ID instead of 1.

    ID Property Field Value
    1 car colour X
    1 car engine X


    and i want :

    ID Property colour engine version
    1 car X X

    instead of :

    ID Property colour engine version
    1 car X
    1 car X


    It is possible?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11)
    Posts
    52,093

    Re: Unwanted ordering Columns

    Well, provide another sample and we'll see.

  5. #5
    Registered User
    Join Date
    08-14-2019
    Location
    Netherlands
    MS-Off Ver
    2019
    Posts
    36

    Re: Unwanted ordering Columns

    File updated thanks for Your help

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    6,086

    Re: Unwanted ordering Columns

    Please try

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Need macro code to rearrange columns and to delete unwanted columns
    By Giri.hb in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 08-16-2019, 03:00 AM
  2. [SOLVED] Delete unwanted columns and only keeping known name columns
    By robertguy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-15-2018, 07:06 AM
  3. Ordering columns to see progression of data using VBA Macro
    By Mill95 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2014, 09:14 AM
  4. VBA Ordering User form for Purchase Ordering.
    By caf20012 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-10-2014, 01:50 PM
  5. Ordering chart columns
    By Killhate in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2013, 06:40 PM
  6. Re-ordering some columns (groups of columns)
    By pepito in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-30-2008, 04:38 PM
  7. Delete unwanted columns
    By stevekirk in forum Excel General
    Replies: 6
    Last Post: 09-24-2006, 08:52 AM

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