+ Reply to Thread
Results 1 to 4 of 4

Sorting Date Ranges

  1. #1
    Registered User
    Join Date
    06-12-2015
    Location
    Chicago, IL
    MS-Off Ver
    Windows 7 Enterprise
    Posts
    1

    Angry Sorting Date Ranges

    Greetings,

    This should be simple, really simple. However, I'm having difficulty getting this right. I've read multiple forums from basic searches. Unfortunately, none of these solutions appear to be salient to my particular problem...so I'm hoping for assistance here.

    I have a column organized by the following date ranges:

    1-30
    30-60
    60-90
    90-120
    120-999

    I want it to look like that every-single-time. However, when I add a filter and sort it, I get this crap:

    90-120
    60-90
    30-60
    1-30
    120-999

    and

    120-999
    1-30
    30-60
    60-90
    90-120

    That's not right. And, before you ask, I did add the apostrophe prior to typing this out - so it is recognizing this as a number. I do not want to add any more columns as a means to solve this problem because this information is being used on a pivot table I'm creating. I fear that tampering with this by adding more stuff to it will only disrupt the data flow.

    People, I just want it to look like this when I sort these date ranges, is that so hard?

    120-999
    90-120
    60-90
    30-60
    1-30

    1-30
    30-60
    60-90
    90-120
    120-999

    Assistance would be greatly welcomed and appreciated!

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Sorting Date Ranges

    Actually adding the apostrophe is making it appear as text. Use this =isnumber(a2) to see if it is acting as a number.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Sorting Date Ranges

    playing around with this and the only way that comes to mind is to maybe add a value to each set, such as make 1-30 A 1-30 and B 30-60 etc, then sort ascending or descending.

  4. #4
    Registered User
    Join Date
    05-25-2012
    Location
    Chennai,TamilNadu,India
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    61

    Re: Sorting Date Ranges

    If you already have a column which contains these ranges as the values, you can even give a try for something called Custom List. Custom list is a place where you can upload any order of your choice and you can even call that order in a pivot sorting as well.

    Pardon me! if I did not get your requirement correctly.

    If I got it right, check the below link where you can find how to do this process:

    http://www.techrepublic.com/blog/10-...ting-in-excel/

+ 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. 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
  2. Sorting date ranges in Excel 2003
    By jwbenford in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-01-2012, 12:58 PM
  3. Sorting date ranges
    By cclayton in forum Excel General
    Replies: 4
    Last Post: 12-07-2010, 09:41 AM
  4. Sorting Value Ranges
    By inspiresit in forum Excel General
    Replies: 5
    Last Post: 06-15-2010, 05:54 PM
  5. Sorting ranges
    By timbim in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2009, 10:59 AM

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