+ Reply to Thread
Results 1 to 9 of 9

Sort dates in ascending order

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Sort dates in ascending order

    Hello everyone
    In my attachment I have two sheets one for data named "INT" and the other sheet is for results named "FEED"
    In FEED sheet I have array formulas that extract the data between two dates in
    Code:

    Please Login or Register  to view this content.
    Everything is ok

    I need to have the results sorted according to the dates (in ascending order) using array formulas and without using helper columns ...
    Thanks advanced
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Sort dates in ascending order

    Why not use Excel's built in sorting functionality?

    This is the kind of thing it's there for.
    If posting code please use code tags, see here.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sort dates in ascending order

    If you still want array formula try array-entering this in the FEED sheet.

    =IFERROR(SMALL(IF(($C$3<=INT!$C$5:$C$27)*($D$3>=INT!$C$5:$C$27),INT!$C$5:$C$27),ROWS($1:1)),"")
    Dave

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sort dates in ascending order

    Thanks a lot for this great help
    It is wonderful

    Can you help me editing the formulas in Columns D & E to grab the proper data according to the date ..?

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sort dates in ascending order

    I tried to use this formula in D7
    Please Login or Register  to view this content.
    and this formula in E7
    Please Login or Register  to view this content.
    Everything is ok if I have different dates but I have problem with the same dates
    For example : the date "02/02/2015" ...I have got Client 3 and 9000 for both the dates

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sort dates in ascending order

    The easiest way to get the dates in order on the FEED worksheet is to sort the dates in order on the INT worksheet. Your existing formula will not have to be adjusted and the dates will be in order.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sort dates in ascending order

    If you still want to use formula array-enter this as before. Find it in column H of FEED in the attached.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then in column G array-enter this and fill down until you get blanks.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then copy that range and paste into columns I and J.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sort dates in ascending order

    Brilliant
    Thanks a lot for this wonderful solution. You are perfect

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sort dates in ascending order

    You are welcome. Glad it does the job.

+ 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] Sort dates in ascending order of day
    By mso3 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-08-2015, 08:05 AM
  2. Sort the final digits and sort in ascending order
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2014, 11:58 AM
  3. [SOLVED] Sort dates in ascending order ignoring the year
    By mukeshbaviskar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2014, 12:30 AM
  4. [SOLVED] Sort in ascending order
    By Glenn Kennedy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-07-2013, 08:11 AM
  5. [SOLVED] Sort Ascending order
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2013, 02:27 PM
  6. [SOLVED] Sort in ascending order
    By Dibbley247 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-17-2013, 12:30 AM
  7. sort ascending order
    By iscar_marius in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-11-2009, 11:00 AM

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