+ Reply to Thread
Results 1 to 12 of 12

Sorting text underneath numbers always

  1. #1
    Registered User
    Join Date
    09-21-2023
    Location
    UK
    MS-Off Ver
    365
    Posts
    4

    Unhappy Sorting text underneath numbers always

    Hello.

    I've been looking for a solution to my problem everywhere and hope someone can help me.

    I have a complex 'status' cell on a spreadsheet that for each row produces a score for each client based on how well the relationship is going. I want to be able to sort the column easily so that I can see best or worst scores easily at the top for prioritisation for the team etc. Easy peasy, so far.

    However, I also need a lot of empty rows at the bottom so the team can easily add more clients to the list without being able to accidentally edit the formula. So I've copied the 'status' cells all the way down and then locked the column. Problem is now, that the empty cells calculate 0, and so if you ever sort the row Z-A to see worst scores at the top, then all the empty cells go top and all the real data is way down off screen. I've tried putting an extra 'if' on the front to detect if any data is present in the row, and post a blank if needed - but excel reads that as 0, not null, so problem isn't solved.

    My idea at the moment is to have blank rows post a text string. But here's my question: is there a way to have the sort always put numbers before text, so that the text is always dumped to the bottom, regardless of whether you sort biggest to smallest or smallest to biggest? I hope that makes sense.

    Alternatively, if anyone has a better solution, I'm all ears!

    Thank you!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sorting text underneath numbers always

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    09-21-2023
    Location
    UK
    MS-Off Ver
    365
    Posts
    4

    Re: Sorting text underneath numbers always

    Example problem.xlsx

    Sorry! Hopefully that works

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sorting text underneath numbers always

    It worked fine. I see your problem... but (right now) haven't a clue how to solve it....

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Sorting text underneath numbers always

    Why do you need blank rows in the table?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sorting text underneath numbers always

    Yes... that's it.

    1. Delete the surplus rows.

    2. Turn the range into a table.

    3. When you add new rows, the formula auto fills down the table.
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Sorting text underneath numbers always

    That is what I would have suggested once the OP had replied to my question. The column headers nan be coloured to match the background and effectively 'hidden'.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sorting text underneath numbers always

    The status formula then becomes:

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

  9. #9
    Registered User
    Join Date
    09-21-2023
    Location
    UK
    MS-Off Ver
    365
    Posts
    4

    Re: Sorting text underneath numbers always

    Hmm. Thanks. I'd not thought of a table.

    One problem with this though, is that the furthest left column (plan), doesn't add the drop-down list to new rows as they are created. Is there a workaround for that?

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sorting text underneath numbers always

    What drop-down list? There isn't one. What do you expect to see there? Why?

    Ahhh. Plan. Ther SECOND column from the left... Change the DV from a range to a Named Range (=List, where list refers to the same 5 cells as previously) and it works.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    09-21-2023
    Location
    UK
    MS-Off Ver
    365
    Posts
    4

    Re: Sorting text underneath numbers always

    Thanks, Glenn.

    I see what you've done works, and I can see you've put =list. But I'm not sure how to recreate it. How do I select the cells? I put =list in the data validation box and get "A Named range you specified cannot be found"

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sorting text underneath numbers always

    CTRL-F3 to go to the Named Range manager. It's defined there.

+ 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. VBA macro to find specific text, then copy into a new WB data underneath such text
    By tempforVBA in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2018, 09:31 AM
  2. [SOLVED] Sorting numbers and text together
    By Bradex in forum Excel General
    Replies: 13
    Last Post: 08-04-2016, 09:14 AM
  3. [SOLVED] Search a row for a text string and return the value in the cell underneath
    By buzzers88 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-12-2014, 05:23 PM
  4. [SOLVED] Copy text files underneath each other
    By ditöle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-05-2013, 07:28 AM
  5. Sorting numbers as Text
    By David M. in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 07-25-2006, 12:50 PM
  6. SORTING TEXT AND NUMBERS
    By jstephenson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-10-2006, 04:50 PM
  7. sorting text & numbers
    By billjr in forum Excel General
    Replies: 3
    Last Post: 08-04-2005, 03:05 PM

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