+ Reply to Thread
Results 1 to 5 of 5

Force descending sort to Start with Numbers

  1. #1
    Registered User
    Join Date
    03-03-2006
    Posts
    7

    Force descending sort to Start with Numbers

    Here is an example of my spreadsheet:

    Player GP G A PTS PT/G SH P P PMS

    Spare _ _ _ _ _ _ _ _ _
    Spare _ _ _ _ _ _ _ _ _
    Spare _ _ _ _ _ _ _ _ _
    Ray 4 2 2 4 1.00 0 0 0
    Steve 5 2 2 4 0.80 0 0 0
    Dave 3 3 0 3 1.00 0 0 0
    Brian 2 1 1 2 1.00 0 0 0
    Denis 1 1 0 1 1.00 0 0 0
    Al 0 0 0 0 0.00 0 0 0



    I have a macro to sort Points(PTS) descending, Points/game(PT/G) descending, then Goals(G) descending.

    The cells in this sheet are links to a master records sheet. Spare Players have values of N/A.

    Problem is when Excel Sorts Descending it puts the N/A's First then the numbers.

    How can I get the Spare(N/A) values to be listed last and still have my numbers descending?
    Last edited by The Smuffer; 09-04-2006 at 03:35 PM.

  2. #2
    Forum Contributor
    Join Date
    12-12-2005
    Posts
    667
    Replace N/A with a slash / (ASCII 47)
    Sort the data then replace the slash with N/A
    Best regards,

    Ray

  3. #3
    Registered User
    Join Date
    03-03-2006
    Posts
    7

    Doesn't seem to matter

    I have replaced my "N/A"'s with "/"'s and "_"'s with the same results

    Text that includes numbers and normal text are sorted in the following order:

    0 1 2 3 4 5 6 7 8 9 (space) ! " # $ % & ( ) * , . / : ; ? @ [ \ ] ^ _ ` { | } ~ + < = > A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

    (Backwards for descending)

  4. #4
    Forum Contributor
    Join Date
    12-12-2005
    Posts
    667
    You're quite right! I hadn't tested it.
    If you add a ' before each number to turn it into Text, Excel will sort as ASCII, but it will issue a warning.

  5. #5
    Registered User
    Join Date
    03-03-2006
    Posts
    7

    Not quite what I need

    The ' thing would work but the appreance will not. After sorting this worksheet it gets pasted on a website for viewing. I wouldn't want a bunch of 's infrontt of the numbers.

    Thanks for the ideas though!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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