+ Reply to Thread
Results 1 to 2 of 2

Sort Values Lowest to Highest

  1. #1
    Registered User
    Join Date
    05-17-2021
    Location
    Sydney, Australia
    MS-Off Ver
    2103
    Posts
    1

    Sort Values Lowest to Highest

    Hello,

    I'm looking for some help on sorting values from lowest to highest.

    I have rows of data with numbers in each cell separated with the separator and are in a random order.
    I would like to the values in each row to sort from lowest to highest.

    Please see example attached.

    Any help would be appreciated.

    Thank you,

    Katie
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Sort Values Lowest to Highest

    First, data quality. Cell A1 contains 0.1|2.2|.4.9|9.9|5.2|1|6|3.3. .4.9 isn't a valid number. Should that be 4.9? Note that A1 also contains 1 as 1; on the other hand, A4 contains 9.0. Is it necessary to retain the .0 in 9.0? I'm going to assume A1 should contain 4.9 and 9 is interchangeable with 9.

    If you're using Excel 2013 (2103 won't be released for another 81 years), this would be most efficiently done using VBA macros. However, since you're asking this in the General forum, I'll figure I need to stick with formulas.

    This needs to be a multiple cell per result approach.

    M1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    N1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Fill N1 right into O1:U1.

    C1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Select C1:U1 and fill down into C2:U4. This puts sorted, |-separated arrays into cells in column C.

    Now for VBA. With Excel running, save your workbook as either an .XLSM or .XLSB file so that it will retain VBA modules. Press [Alt]+[F11] to display the VBA Editor. There should be a pane in the upper-left which shows labels followed by workbook names in parentheses. Select the entry for your workbook. Issue the VBA Editor menu command Insert > Module to add a general VBA module to the workbook. Copy the code below and paste it into that VBA module.

    Please Login or Register  to view this content.
    Switch back to Excel, and try the following formula.

    G1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If that works, fill G1 down into G2:G4.

+ 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] Cant sort % highest to lowest?
    By mikey42979 in forum Excel General
    Replies: 6
    Last Post: 12-10-2015, 02:39 PM
  2. Auto sort values from highest to lowest based off of value
    By qj67 in forum Excel Formulas & Functions
    Replies: 31
    Last Post: 06-24-2014, 10:24 AM
  3. auto sort highest to lowest
    By B1G0 in forum Excel General
    Replies: 3
    Last Post: 04-02-2014, 05:37 PM
  4. How to sort from highest to lowest
    By dneunabe in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-22-2013, 04:49 PM
  5. Auto Sort Values From Highest To Lowest Based Off Of Value
    By CXP2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-03-2011, 09:15 PM
  6. Auto sort values from highest to lowest based off of value
    By Vbort44 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-09-2008, 07:21 PM
  7. Sort from lowest to highest
    By Steved in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-10-2005, 08:07 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