get dates from a range in ascending order

dino4u86

New Member
Joined
Nov 11, 2020
Messages
11
Office Version
  1. 2013
Platform
  1. Windows
On another sheet, I have dates in column A. In the new sheet, I need to first extract the earliest date from column A of that other sheet which is easy. just use the "Min" function for A column. So now the earliest date get picked and feeds into the cell of the new sheet in D1. How do I get the next earliest date after D1 from the range Column A of the other sheet and input that in D2. Basically picking the dates and sorting the dates in a ascending ordering through a formula is what I need. Thanks
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
How about
+Fluff 1.xlsm
ABCD
1
215/03/202116/01/2021
315/09/202122/01/2021
429/03/202129/01/2021
509/06/202106/03/2021
627/07/202115/03/2021
706/03/202123/03/2021
829/01/202129/03/2021
912/08/202104/04/2021
1027/07/202115/04/2021
1104/04/202107/06/2021
1204/10/202109/06/2021
1316/01/202107/07/2021
1407/06/202127/07/2021
1515/04/202127/07/2021
1618/10/202104/08/2021
1722/01/202112/08/2021
1807/07/202115/09/2021
1904/08/202104/10/2021
2015/10/202115/10/2021
2123/03/202118/10/2021
22
Sheet1
Cell Formulas
RangeFormula
D2:D21D2=AGGREGATE(15,6,$A$2:$A$21,ROWS(D$2:D2))
 
Upvote 0
Thank for the help but this does not ignore the duplicate dates. sorry I should have mentioned earlier. Can you help with that?
 

Attachments

  • Date issue.PNG
    Date issue.PNG
    22.9 KB · Views: 12
Upvote 0
Ok, how about
+Fluff 1.xlsm
ABCD
1
215/03/202116/01/2021
315/09/202122/01/2021
429/03/202129/01/2021
509/06/202106/03/2021
627/07/202115/03/2021
706/03/202123/03/2021
829/01/202129/03/2021
912/08/202104/04/2021
1027/07/202115/04/2021
1104/04/202107/06/2021
1204/10/202109/06/2021
1316/01/202107/07/2021
1407/06/202127/07/2021
1515/04/202104/08/2021
1618/10/202112/08/2021
1722/01/202115/09/2021
1807/07/202104/10/2021
1904/08/202115/10/2021
2015/10/202118/10/2021
2123/03/2021 
22
Sheet1
Cell Formulas
RangeFormula
D2:D21D2=IFERROR(AGGREGATE(15,6,$A$2:$A$21/(COUNTIFS(D$1:D1,$A$2:$A$21)=0),1),"")
 
Upvote 0
Solution
Thanks a lot. Though this work I'm unable to update the cells by dragging the formulas down. I need to hit enter on every cell and it updates the cell with the result as expected. why is that?
 
Upvote 0
Thanks a lot. Though this work I'm unable to update the cells by dragging the formulas down. I need to hit enter on every cell and it updates the cell with the result as expected. why is that?
Problem solved. thanks a lot for all your help
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top