If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > sort by month of date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-31-06, 23:39
get.mos get.mos is offline
Registered User
 
Join Date: Jun 2005
Location: Flotsam & Jetsam
Posts: 40
sort by month of date

Greetings, all:

I have a (hopefully) quick question. I have a field (column) called birthdate, which is in short date format (mm/dd/yy). If I do a sort, Excel sorts by the yy, however, I would like it to sort by the mm. That is, let's say we have four records with the following birthdates

1/1/85
3/3/72
5/1/64
1/5/65

For ascending order, Excel will sort as follows:

5/1/64
1/5/65
3/3/72
1/1/85

That is, the four records are sorted in ascending order by the year, with oldest being first. Is there any to sort via month, such that the order would be:

1/1/85
1/5/65
3/3/72
5/1/64

I realize I can do this by normalizing (having a separate column for mm, dd, and yy).

Thanks in advance.
__________________
Mos
Reply With Quote
  #2 (permalink)  
Old 06-01-06, 12:49
texasalynn texasalynn is offline
Registered User
 
Join Date: Jun 2002
Location: Houston, TX
Posts: 116
in a separate column put in this formula
=text(a2,"MM")
copy that formula down the length of your data
then you can sort by the new column as the 1st criteria, then use the birthday column as the 2nd criteria
__________________
texasalynn
It's AWL Good!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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