+ Reply to Thread
Results 1 to 6 of 6

Sort numbers within a Cell from Large to Small (Ascending & Decending)

  1. #1
    Forum Contributor
    Join Date
    07-17-2020
    Location
    Uzbek
    MS-Off Ver
    Office 365, V 2212
    Posts
    198

    Sort numbers within a Cell from Large to Small (Ascending & Decending)

    Dear Forum Members,

    Can you please provide formula to sort numbers within a cell from Large to Small.
    For instance, i have a number in cell A2=46921 and after sorting, it should be A2=96421.

    thank you in advance

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Sort numbers within a Cell from Large to Small (Ascending & Decending)

    use this formula BUT after you copy it, Edit the cell (F2) and hit Ctl + Shift + Enter (this will put in the 'curly brackets' { & } in the cell...this is used for ARRAY formulas like this one) =TEXT(SUM(LARGE(--MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1),ROW(INDIRECT("1:"&LEN(A2))))*10^(LEN(A2)-ROW(INDIRECT("1:"&LEN(A2))))),REPT("0",LEN(A2)))

  3. #3
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Sort numbers within a Cell from Large to Small (Ascending & Decending)

    Try this array formula (Ctrl+Shift+Enter);

    Please Login or Register  to view this content.
    You may need to change ";" with "," depending on your regional settings.

  4. #4
    Forum Contributor
    Join Date
    07-17-2020
    Location
    Uzbek
    MS-Off Ver
    Office 365, V 2212
    Posts
    198

    Re: Sort numbers within a Cell from Large to Small (Ascending & Decending)

    Quote Originally Posted by queuesef View Post
    use this formula BUT after you copy it, Edit the cell (F2) and hit Ctl + Shift + Enter (this will put in the 'curly brackets' { & } in the cell...this is used for ARRAY formulas like this one) =TEXT(SUM(LARGE(--MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1),ROW(INDIRECT("1:"&LEN(A2))))*10^(LEN(A2)-ROW(INDIRECT("1:"&LEN(A2))))),REPT("0",LEN(A2)))
    Thanks a lot for support

  5. #5
    Forum Contributor
    Join Date
    07-17-2020
    Location
    Uzbek
    MS-Off Ver
    Office 365, V 2212
    Posts
    198

    Re: Sort numbers within a Cell from Large to Small (Ascending & Decending)

    Quote Originally Posted by Haluk View Post
    Try this array formula (Ctrl+Shift+Enter);

    Please Login or Register  to view this content.
    You may need to change ";" with "," depending on your regional settings.
    thanks a lot for support

  6. #6
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Sort numbers within a Cell from Large to Small (Ascending & Decending)

    You're welcome...

+ 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] Request for Excel formula for two conditions (Large to small, then small to large)
    By nicholascky in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 08-14-2016, 01:16 PM
  2. Sort numbers in ascending order and the concatenate
    By sandubandu in forum Excel General
    Replies: 10
    Last Post: 01-16-2016, 03:11 AM
  3. Charting small numbers with large numbers?
    By dgroshan in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-06-2015, 11:03 AM
  4. Replies: 6
    Last Post: 05-02-2006, 11:20 PM
  5. [SOLVED] sort data by criteria other than ascending or decending
    By HV man in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-29-2006, 12:30 AM
  6. Replies: 3
    Last Post: 09-14-2005, 03:05 PM
  7. Replies: 1
    Last Post: 06-03-2005, 08:05 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