How to sort birthdays (dates) by month/year/day only in Excel?
Normally the dates are sorted firstly by the year, then month, and at last the date in Excel, and it seems quite hard to sort dates only by the month with ignoring the year, even if the month is formatted at the beginning, such as Dec 12, 2011. However, sometime it may ask for sorting birthdays by month when sending birthday cards, or other reasons. This article is going to show you tricky tips to sort birthdays (dates) by month in Excel quickly.
- Sort birthdays (dates) by month/year/day only with Excel functions
- Sort birthday (dates) by month/year/day only with Kutools for Excel
- Sort birthdays (dates) by month only with Kutools for Excel
The Excel’s Month function can help you to extract the month form the date, and then sort them by month and year quickly. Please do as follows:
1. In the adjacent blank cell of the dates, for example the Cell C1, enter the formula =Month (B2), and then drag this cell's AutoFill Handle down to the range as you need. And the months have been extracted from the birthdays. See screenshot:
(1) For sorting by year only, please apply this formula =YEAR(B2);
(2) For sorting by day only, please apply this formula =DAY(B2).
(3) You can also apply the formula =TEXT(B2,"MMDD") to extract months and days from birthdays.
2. Keep selecting these months, and click Data > Sort Smallest to Largest or Sort Largest to Smallest.
3. In the opening Sort Warning dialog box, please check the Expand the selection option, and click the Sort button.
And now the dates have been sorted by the month only (or year/day only)at once. And you can delete the new column with month as you need.
Apart from Excel functions, you can also apply Kutools for Excel’s Apply Date Formatting utility to extract the month/year/day only from birthdays (dates), and then you can sort birthday (dates) by month/year/day only.
1. Copy the birthday column and paste next to original data.
2. Keep selecting the new birthdays in the new column, and click Kutools > Format > Apply Date Formatting. And now in the opening Apply Date Formatting dialog box, please select a date formatting and click the Ok button.
In our case, we select the date formatting which shows a date as month only. You can select the date formatting which only shows year or day of birthdays as you need. See screenshot:
3. Keep selecting the birthdays which show months only, click Kutools > To Actual, and click Home > Number Format > General successively.
And now months are extracted from all birthdays. See screenshots:
4. Keep selecting the months of birthdays, click Data > Sort Smallest to Largest or Sort Largest to Smallest, and then in the Sort Warning dialog box check the Expand the selection option and click the Sort button. See screenshots:
So far we have sorted the birthdays by the month only (or sorted by the year/day only).
The above methods may be a little complex, however with Advanced Sort utility of Kutools for Excel, you can sort dates based on month directly and quickly.
1. Select the list you want to sort the date by month and click Kutools Plus > Advanced Sort. See screenshot:
2. And then in the Advanced Sort dialog box, select the birthday column, and choose Month (or Day) from the Sort On drop down list, .and click the Ok button. See screenshot:
And now you can see the birthdays have been sorted by month (or day) only. See screenshot:
Best Office Productivity Tools
Supercharge Your Spreadsheets： Experience Efficiency Like Never Before with Kutools for Excel
Kutools for Excel boasts over 300 features, ensuring that what you need is just a click away...
Supports Office/Excel 2007-2021 & newer, including 365 | Available in 44 languages | Enjoy a full-featured 30-day free trial.
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!