Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default sort by month and date only

Is there a way to sort by month and day only? For example, the field
"Date" is in a format mm/dd/yyyy but I want to sort it only by mm/dd
so that January 1, 2004 comes before October 10, 2003. Does that make
sense?

Robert

1/1
1/2....
2/1
2/2...
3/1
3/2...
etc.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default sort by month and date only

The way to do this is to set up a helper column with just the month and the day.
One formula is:

=date(year(today()),month(a1),day(a1)

Then sort on that column.

Another option is to restructure your data to have separate columns for the
year, month and day.

--
Regards,
Fred


"robnsd" wrote in message
oups.com...
Is there a way to sort by month and day only? For example, the field
"Date" is in a format mm/dd/yyyy but I want to sort it only by mm/dd
so that January 1, 2004 comes before October 10, 2003. Does that make
sense?

Robert

1/1
1/2....
2/1
2/2...
3/1
3/2...
etc.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 287
Default sort by month and date only

I'd tweak that slightly, Fred

=DATE(0,MONTH(A1),DAY(A1))

otherwise 29th Feb will be equal to 1st March and might sort the wrong way
round....

or just use

=TEXT(A1,"mmdd")

"Fred Smith" wrote:

The way to do this is to set up a helper column with just the month and the day.
One formula is:

=date(year(today()),month(a1),day(a1)

Then sort on that column.

Another option is to restructure your data to have separate columns for the
year, month and day.

--
Regards,
Fred


"robnsd" wrote in message
oups.com...
Is there a way to sort by month and day only? For example, the field
"Date" is in a format mm/dd/yyyy but I want to sort it only by mm/dd
so that January 1, 2004 comes before October 10, 2003. Does that make
sense?

Robert

1/1
1/2....
2/1
2/2...
3/1
3/2...
etc.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default sort by month and date only

One mo

=text(a1,"mmdd")

and sort by that column.

robnsd wrote:

Is there a way to sort by month and day only? For example, the field
"Date" is in a format mm/dd/yyyy but I want to sort it only by mm/dd
so that January 1, 2004 comes before October 10, 2003. Does that make
sense?

Robert

1/1
1/2....
2/1
2/2...
3/1
3/2...
etc.


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default sort by month and date only

On Feb 10, 9:59 am, Dave Peterson wrote:
One mo

=text(a1,"mmdd")

and sort by that column.





robnsd wrote:

Is there a way to sort by month and day only? For example, the field
"Date" is in a format mm/dd/yyyy but I want to sort it only by mm/dd
so that January 1, 2004 comes before October 10, 2003. Does that make
sense?


Robert


1/1
1/2....
2/1
2/2...
3/1
3/2...
etc.


--

Dave Peterson- Hide quoted text -

- Show quoted text -


Thanks,

Works great.

Robert

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
I want to sort by month, date, year. Birthdates. How do I do it Shebamandy Excel Worksheet Functions 2 October 17th 06 04:52 PM
Sort month/date/year data using month and date only SMW820 Excel Discussion (Misc queries) 6 June 22nd 06 05:14 PM
Calculate 1st of month date from existing date. Jim15 Excel Discussion (Misc queries) 1 January 9th 06 10:05 PM
How do I sort data by Month on the date format like (02/04/97)? Winnie Excel Discussion (Misc queries) 5 October 14th 05 07:16 PM


All times are GMT +1. The time now is 12:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"