+ Reply to Thread
Results 1 to 3 of 3

Custom Sorting a column by Date....and Text

  1. #1
    Registered User
    Join Date
    10-10-2008
    Location
    Illinois
    MS-Off Ver
    Microsoft Office Excel 2003
    Posts
    85

    Custom Sorting a column by Date....and Text

    I need to custom sort a column. I have 3 different types of data in the column.
    First - multiple dates, Second - "TBA", and Third - "ASAP". What I need is when the column is sorted the "ASAP" rows will be first, the dates (sorted) will be next and finally the "TBA"s. I have been trying to use a custom list.....? Does anyone have any ideas? Thank You
    Last edited by Khaos176; 07-23-2009 at 07:51 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Custom Sorting a column by Date....and Text

    Hi Khaos,

    One option might be to use a helper column. For example, let's assume your "assorted data" column is A and you have other columns of values (irrelevent). Headers are in row 1 and data starts in row 2.

    In an open column (let's say D), in row 1 (D1) put a header (e.g. "Sort ID") and in row 2 (D2) put the formula:

    =IF(A2="TBA",2,IF(A2="ASAP",3,1))

    Fill that down column D for as many rows as you have in column A. This will result in a bunch of 1's, 2's and 3's based on the value in column A. Select your whole data range now, and in the sorting options set your first sort to be on the new column (D) ascending, and your second sort criteria on your original "assorted data" column (A).

    Hopefully that helps!

  3. #3
    Registered User
    Join Date
    10-10-2008
    Location
    Illinois
    MS-Off Ver
    Microsoft Office Excel 2003
    Posts
    85

    Re: Custom Sorting a column by Date....and Text

    That was what I needed. Thank you.

+ 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