+ Reply to Thread
Results 1 to 3 of 3

Sort Columns automatically

Hybrid View

  1. #1
    Registered User
    Join Date
    05-03-2024
    Location
    London England
    MS-Off Ver
    win11
    Posts
    2

    Post Sort Columns automatically

    Please see attachment

    Asking to sort columns automatically

    I am grateful for your help in this excel problem excel 2021 in win 11

    Thank you in advance

    Michael
    Attached Files Attached Files
    Last edited by sirmixbits; 05-05-2024 at 01:33 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,029

    Re: Sort Columns automatically

    With Power Query

    let
        Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        #"Filtered Rows" = Table.SelectRows(Source, each ([NAME] <> null)),
        #"Added Index" = Table.AddIndexColumn(#"Filtered Rows", "Index", 1, 1, Int64.Type),
        #"Sorted Rows" = Table.Sort(#"Added Index",{{"POINTS", Order.Descending}}),
        #"Added Index1" = Table.AddIndexColumn(#"Sorted Rows", "Index.1", 1, 1, Int64.Type),
        #"Sorted Rows1" = Table.Sort(#"Added Index1",{{"Index", Order.Ascending}}),
        #"Removed Columns" = Table.RemoveColumns(#"Sorted Rows1",{"Index"})
    in
        #"Removed Columns"
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    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

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,533

    Re: Sort Columns automatically

    Win 11 is not an Excel version - should be 2016, 2019, 2021 or 365 (or similar) so please update your profile.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. I want to sort 2 different columns automatically in one sheet
    By ClaudiaPerkins in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2021, 08:45 PM
  2. [SOLVED] Vba, Automatically Sort 3 columns Alphabetically
    By (T_T) in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-21-2020, 10:59 AM
  3. Automatically sort by date, multiple columns, and blanks
    By shaun.burke in forum Excel General
    Replies: 1
    Last Post: 08-16-2019, 10:44 AM
  4. VBA To Sort 2 Columns Automatically
    By dustind8721 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2015, 12:34 PM
  5. [SOLVED] How to automatically sort the columns (move the columns around)
    By OldGrantonian in forum Excel General
    Replies: 4
    Last Post: 08-18-2013, 07:44 AM
  6. [SOLVED] Automatically Sort Columns
    By HeatherV in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-12-2012, 04:33 PM
  7. Automatically sort new data by multiple columns
    By burtonlang in forum Excel General
    Replies: 3
    Last Post: 10-26-2009, 08:03 AM

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