ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How sort dates just by day/month and NOT year if all 3 given in ce (https://www.excelbanter.com/excel-worksheet-functions/9738-how-sort-dates-just-day-month-not-year-if-all-3-given-ce.html)

smags

How sort dates just by day/month and NOT year if all 3 given in ce
 
How can I sort dates in a column just by the day and month and NOT the year
if all three items are given in each cell? Example, I want to sort the
following dates so that all Jan dates are together, Feb dates are together
(and so on) with the DAYS of the month in order, NOT oldest/youngest by YEAR:
01/31/04...01/02/05...01/25/98...04/22/68...

The list should give me 01/02/05, 01/25/98, 01/31/04, 04/22/68.

Make sense? Maybe I need to re-format the date column to something else???

Thanks.
--
smags

Peo Sjoblom

You need to create a help column, if the dates are in A2:A100, insert a help
column B and use

=DATE(1,MONTH(A2),DAY(A2))

copy down


select the columns and sort by B ascending
--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"smags" wrote in message
...
How can I sort dates in a column just by the day and month and NOT the
year
if all three items are given in each cell? Example, I want to sort the
following dates so that all Jan dates are together, Feb dates are together
(and so on) with the DAYS of the month in order, NOT oldest/youngest by
YEAR:
01/31/04...01/02/05...01/25/98...04/22/68...

The list should give me 01/02/05, 01/25/98, 01/31/04, 04/22/68.

Make sense? Maybe I need to re-format the date column to something
else???

Thanks.
--
smags





All times are GMT +1. The time now is 07:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com