+ Reply to Thread
Results 1 to 3 of 3

Sort dates by a formula

  1. #1
    Forum Contributor
    Join Date
    02-09-2011
    Location
    Perth, Australia
    MS-Off Ver
    2016
    Posts
    161

    Sort dates by a formula

    Hi,
    I need to sort dates with a formula. I have a list of dates and corresponding areas and want the dates sorted (oldest to newest) in column F (please see attached example file). I would like the corresponding area numbers to sort along with the dates so that they still align.
    What formula would I use and what cell/s would it go in?
    Thanks very much
    Dave
    Attached Files Attached Files

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Sort dates by a formula

    You don't need a formula. Providing you select the entire dataset before you sort, all the columns should be included and sorted correctly.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Sort dates by a formula

    You can use this formula in F3:

    =SMALL($B$3:$B$17,ROWS($1:1))

    and this one in G3:

    =VLOOKUP(F3,$B$3:$C$17,2,0)

    then copy down as required.

    Note that this will not work properly if you have duplicate dates.

    Hope this helps.

    Pete

+ 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. Trying to sort dates to include a range of dates
    By ehh-cellent in forum Excel General
    Replies: 6
    Last Post: 08-28-2017, 04:21 PM
  2. Replies: 5
    Last Post: 05-09-2017, 08:48 AM
  3. [SOLVED] Need formula to sort dates with times
    By naga in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-28-2017, 07:36 AM
  4. sort Dates in ascending and descending Using formula in excel
    By sabubakaralis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2015, 10:17 AM
  5. [SOLVED] Sort Dates with a formula
    By turist in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-29-2013, 11:06 AM
  6. [SOLVED] how to sort dates by using formula
    By Solomon14all in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-21-2013, 06:32 AM
  7. [SOLVED] Sorting dates:How do I sort a column filled with dates by Month, Day, then Year?
    By Heather in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-22-2005, 10:05 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