+ Reply to Thread
Results 1 to 8 of 8

Sort Dates with a formula

  1. #1
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Sort Dates with a formula

    I need to list the dates as starting from choosen cell and sort by Z-A.
    In attached file explained.

    Thanks in advance for any help and reply.

    Regards,
    turist
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sort Dates with a formula

    Hi,

    In A3 and copy down:

    =MAX(INDEX((NOT(ISNUMBER(MATCH(Sheet2!$A$2:$A$21,Sheet1!$A$2:$A2,0)))*Sheet2!$A$2:$A$21),,))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    09-05-2009
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: Sort Dates with a formula

    kindly use in in Cell a2 and copy down
    Please Login or Register  to view this content.


    Vorabha
    Last edited by vorabha; 10-29-2013 at 10:48 AM.

  4. #4
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Sort Dates with a formula

    Quote Originally Posted by XOR LX View Post
    Hi,

    In A3 and copy down:

    =MAX(INDEX((NOT(ISNUMBER(MATCH(Sheet2!$A$2:$A$21,Sheet1!$A$2:$A2,0)))*Sheet2!$A$2:$A$21),,))

    Regards
    Works only sort all dates :
    If you change Control date as 10/02/2013 (or 02/10/2013) you will see the date value is wrong in A3 cell .
    Could you please check, and correct the formula.
    Regards,
    turist

  5. #5
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Sort Dates with a formula

    Quote Originally Posted by vorabha View Post
    kindly use in in Cell a2 and copy down
    Please Login or Register  to view this content.


    Vorabha
    Works only sort all dates :
    If you change Control date as 10/02/2013 (or 02/10/2013) you will see the date value is wrong in A3 cell .
    Could you please check, and correct the formula.
    Regards,
    turist

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sort Dates with a formula

    Ah, apologies. It wasn't clear from your original post. Try instead (in A3):

    =IFERROR(1/(1/(MAX(INDEX((Sheet2!$A$2:$A$21<MIN(Sheet1!$A$2:$A2))*(Sheet2!$A$2:$A$21),,)))),"")

    Regards

  7. #7
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Sort Dates with a formula

    Quote Originally Posted by XOR LX View Post
    Ah, apologies. It wasn't clear from your original post. Try instead (in A3):

    =IFERROR(1/(1/(MAX(INDEX((Sheet2!$A$2:$A$21<MIN(Sheet1!$A$2:$A2))*(Sheet2!$A$2:$A$21),,)))),"")

    Regards
    Great, now works.

    Thanks a lot.

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sort Dates with a formula

    You're welcome.

+ 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] 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
  2. [SOLVED] sort dates
    By Debgala in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  3. sort dates
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 02:05 PM
  4. [SOLVED] sort dates
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 04:05 AM
  5. [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

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