Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Sorting Dates by Month.
Written by Allen Wyatt (last updated May 22, 2021)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
There may come a time when you have a need to sort a list of information based on the month represented in a particular column. For instance, you may have a list of people and their birthdays, and you want to sort the list by birthday month so that you know whose birthdays occur within a particular month.
The easiest way to do this is to add a new column to your table. This column will be named something descriptive, such as "Birth Month" or simply "Month." For instance, let's say that you have people's birthdays in column B, you could add the new column in column C. In this column you could then use the MONTH function, as follows:
=MONTH(B3)
This particular formula would go in cell C3, but similar formulas would go in each cell of column C. The result is that column C will contain numbers ranging between 1 and 12, representing to birth months of the people. You can now sort the list based on the contents of column C, with the result that the list is sorted by month.
This approach works fine, but you may not be able to add another column to your worksheet. If this is the case, you can follow these steps to sort by month:
Figure 1. The Number tab of the Format Cells dialog box.
Figure 2. The Sort dialog box.
You may be wondering why you need to reformat the display of the cells containing the birthdates (steps 1 through 6). The reason is that when you finally sort your list (steps 7 through 13), if you simply have the original full dates displayed, Excel will effectively sort the list chronologically rather than by month.
There is an additional way you can approach the problem. This involves actually converting the dates into text (instead of the internal serial numbers), as follows:
Your dates are now pasted into Excel as true text entries, not as dates. This allows you to easily sort the information according to the month in the date.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9728) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Sorting Dates by Month.
Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!
One of the strong features of Excel is its ability to sort information in a worksheet. When it doesn't sort information ...
Discover MoreIf you have some data in a worksheet that is bold, you may want to sort that data based on the text attribute. This is ...
Discover MoreIf you use graphics in a worksheet that are associated with certain cells (perhaps images of parts or icons for worksheet ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2021-06-26 03:10:36
David
Thanks a lot. It was very helpful
2021-05-24 03:43:58
Dave S
@Uma
Options 1 and 2 will work for any date format.
For option 3, you can apply a custom format like mmmm dd yyyy to your dates to display the month first.
2021-05-23 03:14:12
Uma
In India, the date is written with the month in the middle and not at the beginning as in USA. How do I modify the formula to get the month in the new column?
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments