Sorting by date.

PACKERS

New Member
Joined
Mar 9, 2012
Messages
6
Hello,

The info below is a portion of dates that I am trying to sort:

November 6, 1954
January 8, 1958
January 17, 1959
March 29, 1963
January 2, 1965
January 29, 1965
May 20, 1966

<colgroup><col></colgroup><tbody>
</tbody>

It is one cell per date. I would like it to sort by month and day, so that all January will be in order from Jan 01 to Jan 31, regardless of year. I know I could split the month and day into one cell and the year into a separate cell, but that would be a lot of work.

Thanks for any help!!
 

CalcSux78

Well-known Member
Joined
Oct 15, 2013
Messages
1,120
I was able to sort as requested in 2 minutes using a column that I could hide.
<b>Excel 2010</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>A</th><th>B</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">Dates</td><td style=";">Cust Date</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">January 2, 1965</td><td style="text-align: right;;">January 2, 2015</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">January 8, 1958</td><td style="text-align: right;;">January 8, 2015</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">January 17, 1959</td><td style="text-align: right;;">January 17, 2015</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">January 29, 1965</td><td style="text-align: right;;">January 29, 2015</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">March 29, 1963</td><td style="text-align: right;;">March 29, 2015</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">May 20, 1966</td><td style="text-align: right;;">May 20, 2015</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">November 6, 1954</td><td style="text-align: right;;">November 6, 2015</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">B2</th><td style="text-align:left">=DATE(<font color="Blue">YEAR(<font color="Red">NOW(<font color="Green"></font>)</font>),MONTH(<font color="Red">[@Dates]</font>),DAY(<font color="Red">[@Dates]</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">B3</th><td style="text-align:left">=DATE(<font color="Blue">YEAR(<font color="Red">NOW(<font color="Green"></font>)</font>),MONTH(<font color="Red">[@Dates]</font>),DAY(<font color="Red">[@Dates]</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">B4</th><td style="text-align:left">=DATE(<font color="Blue">YEAR(<font color="Red">NOW(<font color="Green"></font>)</font>),MONTH(<font color="Red">[@Dates]</font>),DAY(<font color="Red">[@Dates]</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">B5</th><td style="text-align:left">=DATE(<font color="Blue">YEAR(<font color="Red">NOW(<font color="Green"></font>)</font>),MONTH(<font color="Red">[@Dates]</font>),DAY(<font color="Red">[@Dates]</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">B6</th><td style="text-align:left">=DATE(<font color="Blue">YEAR(<font color="Red">NOW(<font color="Green"></font>)</font>),MONTH(<font color="Red">[@Dates]</font>),DAY(<font color="Red">[@Dates]</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">B7</th><td style="text-align:left">=DATE(<font color="Blue">YEAR(<font color="Red">NOW(<font color="Green"></font>)</font>),MONTH(<font color="Red">[@Dates]</font>),DAY(<font color="Red">[@Dates]</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">B8</th><td style="text-align:left">=DATE(<font color="Blue">YEAR(<font color="Red">NOW(<font color="Green"></font>)</font>),MONTH(<font color="Red">[@Dates]</font>),DAY(<font color="Red">[@Dates]</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
When complete, I sorted the Cust Date column oldest to newest.
 

davesexcel

Well-known Member
Joined
Feb 26, 2006
Messages
782
Have a separate column and use for example.
B1=month(A1)
and drag the formula down, then sort by column B
 

PACKERS

New Member
Joined
Mar 9, 2012
Messages
6
Thank you for taking the time to do that. I will try and get it to do the same.
 

Forum statistics

Threads
1,084,970
Messages
5,380,918
Members
401,705
Latest member
DravenExcel

Some videos you may like

This Week's Hot Topics

Top