+ Reply to Thread
Results 1 to 6 of 6

Sort by Date

  1. #1
    Forum Contributor
    Join Date
    01-25-2021
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    144

    Sort by Date

    Is there a formula to sort by dates along with subsequent columns.....?

    See Attached.....thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sort by Date

    You'll need to add a helper column to create a proper Excel date number i.e. in F2 down

    =DATE(E3,C3,D3)

    Then sort B3:F9 by column F Date as the first sort column - and by name if you want names on the same date in alphabetical order
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    01-25-2021
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    144

    Re: Sort by Date

    Sorry but I realized my ask was not clear. I am looking for a formula which will sort dynamically as data changes….

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

    Re: Sort by Date

    You can use a couple of helper columns:

    F3: =DATE(E3,C3,D3)

    which will give the proper date,

    G3: =RANK(F3,F$3:F$9,1)+COUNTIF(F$3:F3,F3)-1

    which will then rank the dates in ascending order (and account for duplicates, if any).

    Copy down to the bottom of your data. Then you can use this formula in I3:

    =INDEX(B:B,MATCH(ROWS($1:1),$G:$G,0))

    Copy across and down as required.

    Hope this helps.

    Pete

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Sort by Date

    Hi

    As you have office 365, you can use the SORTBY function.

    =SORTBY(B3:E9,DATE(E3:E9,C3:C9,D3:D9),1)
    Last edited by Kevin UK; 05-06-2021 at 12:47 PM.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  6. #6
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Sort by Date

    I forgot to add, convert your data to a table, the SORTBY function will be then be dynamic.
    Attached Files Attached Files
    Last edited by Kevin UK; 05-06-2021 at 01:15 PM.

+ 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] Index and sort by date, sort no longer works in 2019
    By Mr_Excell_Ensie in forum Excel General
    Replies: 18
    Last Post: 09-30-2020, 03:55 PM
  2. Replies: 4
    Last Post: 09-09-2019, 12:22 AM
  3. [SOLVED] Sort only by days, not from days - months - years (custom vba date sort)
    By alexgoaga in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-16-2018, 06:56 AM
  4. Convert numbers appearing as a date into actual date in order to sort data
    By Santa1986 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-06-2015, 12:56 PM
  5. [SOLVED] Sort date and bring current date top and run macro
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-09-2013, 11:37 PM
  6. [SOLVED] How to sort the data by item code first, then sort them by date?
    By Zecond in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-04-2013, 01:55 AM
  7. [SOLVED] the date format is not working ,sort by date doesn't work.
    By Rosa Campos in forum Excel General
    Replies: 1
    Last Post: 09-12-2005, 06:05 PM

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