+ Reply to Thread
Results 1 to 5 of 5

Sorting by ###, ###, ###A, ###B

  1. #1
    Registered User
    Join Date
    01-04-2019
    Location
    Columbus, OH
    MS-Off Ver
    Excel for Mac 14.6.7
    Posts
    6

    Sorting by ###, ###, ###A, ###B

    Ok, so I have a big problem. We have a massive spreadsheet with many many columns, but the primary sort we want is our job#s. The problem is that our job numbers are out of sort and I cant seem to figure out a way to put them back in order.

    They should be:
    1500
    1501
    1501A
    1501B
    1502
    1503
    1504
    1504A
    1505

    What Im getting is
    1500
    1501
    1502
    1503
    1504
    1505
    1501A
    1501B
    1504A

    Anyone have a solution to fix them without having to go back and manually reorder more than 2000 job#s?

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,755

    Re: Sorting by ###, ###, ###A, ###B

    If the numbers are always four digits you could use a helper column with
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied down and the sort on the helper column

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Sorting by ###, ###, ###A, ###B

    In addition to what Fluff recommended. I'd suggest using Data->Sort to use multi-level sort.

    First level is smallest to largest on helper column. 2nd level is on original column, A to Z.
    Attached Files Attached Files
    "Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
    ― Robert A. Heinlein

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,289

    Re: Sorting by ###, ###, ###A, ###B

    Hi Bluegurl,

    You need to convert those numbers in your list to text and then sort the column.

    Read: https://www.extendoffice.com/documen...r-to-text.html using the Text() function.
    Look at my Helper Column on the attached and the formula. Sort by either column and see the difference.
    Number to Text then Sort.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Sorting by ###, ###, ###A, ###B

    @MarvinP
    Ah, that's cleaner way to sort.

+ 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] 3-level sorting including sorting a column by the number of percent sign in each cell
    By terryhenderson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-14-2017, 05:21 PM
  2. Replies: 1
    Last Post: 12-16-2015, 01:04 PM
  3. [SOLVED] I require sorting formula in excel sheet with complex sorting.
    By kaminanirav in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2015, 08:16 AM
  4. Replies: 0
    Last Post: 02-24-2014, 11:27 AM
  5. Sorting 2 data ranges by comparing one column in each and sorting to match
    By MDKsmiffy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2013, 03:30 PM
  6. Sorting a range to invert it upside down without sorting by any specific column
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2013, 12:53 PM
  7. [SOLVED] Sorting a range to invert it upside down without sorting by any specific column
    By luv2glyd in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-28-2013, 12:43 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