Sorting the dates from beginning to end with a formula

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,227
Office Version
  1. 2013
Platform
  1. Windows
Hello,
Please help me with the question below samle.
I need a formula which will show me the dates from start to end between two related dates from two cells.
On my worksheet column M and Column N has the date ranges all the way downwhich randomly.I need to sort those dates one by one.
Is it possible with a formula?
Many Thanks


COLUMN MCOLUMN NCOLUMN TCOLUMN UCOLUMN VCOLUMN WCOLUMN XCOLUMN Y
14-Mar-201921-Mar-201914-Mar-201915-Mar-201916-Mar-201917-Mar-201918-Mar-201919-Mar-2019

<colgroup><col span="9"></colgroup><tbody>
</tbody>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hello,

Indeed, Excel can sort with a formula ...

However, if you are using a formula, the output range has to be different and separate from the input range ...

HTH
 
Upvote 0
Fixed by code.
Thanks
Code:
    Range("M2:M5000").Select    Selection.Copy
    Range("T2").Select
    ActiveSheet.Paste
    Application.CutCopyMode = False
    Selection.AutoFill Destination:=Range("T2:AC5000"), Type:=xlFillDays
    Range("T2:AC5000").Select
    Range("T1").Select
 
Upvote 0

Forum statistics

Threads
1,196,483
Messages
6,015,460
Members
441,897
Latest member
erma

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