How to sort month?

RichardDK

New Member
Joined
Oct 15, 2002
Messages
3
From a date column (MM/DD/YY), how can I sort by month instead of by the order of the date?
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654
What's the difference? Date order places the list in Month order... unless you have different years in your list.
 

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654
If your list consists of multiple years format your date values as "mmm", choose the Data | Sort... menu command, click on [ Options... ], and choose "Jan, Feb, Mar..." as your sort key.
 

RichardDK

New Member
Joined
Oct 15, 2002
Messages
3
Unfortunately, it is stored as serial number e.g. 11,720.

From an employee birth-date spreadsheet, I want to sort and find out which employee is having a birthday in November.

Can it be done?
 

paliman

Active Member
Joined
Jul 7, 2002
Messages
254

ADVERTISEMENT

Say the dates you want to sort are on col.A

In B2 type and copy down

=MONTH(A2)

Then you can sort on this new column or use an autofilter to view your results
 

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654
On 2002-10-16 13:57, RichardDK wrote:
Unfortunately, it is stored as serial number e.g. 11,720.

From an employee birth-date spreadsheet, I want to sort and find out which employee is having a birthday in November.

Can it be done?


Hmmm... I could have sworn that you said they were in MM/DD/YY format. :p So why can't you format as Text and sort on these values directly? Can you provide some sample data illustrating your difficulty?

Note: You'd need to apply the Text formatting using the Text To Columns Wizard.
This message was edited by Mark W. on 2002-10-16 14:15
 

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654

ADVERTISEMENT

On 2002-10-16 14:03, paliman wrote:
Say the dates you want to sort are on col.A

In B2 type and copy down

=MONTH(A2)

Then you can sort on this new column or use an autofilter to view your results

If A2 contained 11,720 or "11,720" your formula, =MONTH(A2), would give you the month for February 1, 1932.
 

paliman

Active Member
Joined
Jul 7, 2002
Messages
254
It works for me. I have this column with general format and =MONTH(A2) gives me a 2 for 11720, which corresponds to february. I also got a 2 for 28157 (feb 1, 1977), and so on.
 

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654
Yes, and so does my original reply...

If your list consists of multiple years format your date values as "mmm", choose the Data | Sort... menu command, click on [ Options... ], and choose "Jan, Feb, Mar..." as your sort key.

...and, no formulas are needed.
 

Forum statistics

Threads
1,148,280
Messages
5,745,829
Members
423,981
Latest member
ph1l

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
Top