When you’re trying to look at a set of data in a spreadsheet over time, it’s often helpful to be able to sort the data using the dates in that range, which Microsoft Excel allows you to do using the built-in sort tool. Here’s how.
Sorting Dates in Ascending or Descending Order
The easiest way to sort data in Microsoft Excel by date is to sort it in chronological (or reverse chronological) order. This sorts the data with the earliest or latest date starting first, depending on your preference.
To do this, open your Excel workbook and select your data. You can do this using your mouse or trackpad, or by clicking a cell in the range and pressing Ctrl+A on your keyboard.
With your data selected, click the “Sort & Filter” button in the “Home” tab of the ribbon bar. This is where you go to sort values in Excel in various ways, including by date.
In the “Sort & Filter” drop-down menu, you’ll have options to sort data in ascending or descending order. If Excel detects dates in your selected data, the options should show as “Sort Oldest To Newest” or “Sort Newest To Oldest.”
If you want to sort the data so that the earliest date comes first, click the “Sort Oldest To Newest” option. Otherwise, click “Sort Newest To Oldest” to sort the data so that the latest date comes first.
Once you select your preferred option, Excel will automatically sort the data in that order, using the date column as the reference point.
The first date (under your column label) will be the earliest or latest date in the set.
If you’re having problems, select only the column containing the dates and then click Home > Sort & Filter > Sort Oldest To Newest or Sort Newest To Oldest.
Microsoft Excel will display a “Sort Warning” box, asking you whether you wish to sort the data around it (the rest of your data) to ensure that the overall data stays intact, otherwise only the date column will be sorted.
Make sure that “Expand The Selection” is highlighted and then click the “Sort” button.
This will ensure that your entire data set is sorted in ascending or descending order, using the dates as the reference point.
Sorting Dates by Month or Year
It can sometimes be useful to organize data by specific months or years. You might, for instance, be looking to see how many birthdays fall in these groups.
You can do this by using the MONTH
or YEAR
functions. This identifies the month or year number from a date and provides it in a separate column. This column can then be sorted in ascending or descending order.
To do this, create a new column called “Month” or “Date” to the right of your existing data. In the first cell below the column label, type =MONTH(A2)
or =YEAR(A2)
, where “A2” is the first cell in your data range to contain a date.
To ensure that your MONTH
or DATE
formula is used for your entire data set, double-click the small green square icon in the bottom-right corner of the cell. This will automatically duplicate the formula for all other rows where it can find data to the left of it.
With your MONTH
or DATE
formula in place, select your “Month” or “Date” column and then click Home > Sort & Filter.
From the drop-down menu, select either the “Sort Smallest To Largest” or “Sort Largest To Smallest” options. If you sort by smallest to largest, Excel will sort your data with the earliest year or month coming first.
Likewise, Microsoft Excel will sort by the latest year or month if you choose the largest to smallest option.
You’ll need to confirm that you want to use the entire data set, so make sure that “Expand The Selection” is highlighted and then click “Sort” in the “Sort Window” warning box.
Depending on the options you selected, Excel will immediately sort your data using the month or year column you created.
How useful was this post?
- Share review with rating here: Google Review
We are providing practical training (Labor Laws, Payroll, Salary Structure, PF-ESI Challan) and Labor Codes, Payroll Consultant Service & more:
- HR Generalist Practical Training + Certificate: https://oneclik.in/hr-generalist-practical-training/
- Labor Law + Payroll Practical Training + Certificate : https://oneclik.in/labor-law-payroll-practical-training-certificate/ (PF, ESI, Bonus, Payroll & more)
- HR Analytics Practical Training + Certificate: https://oneclik.in/hr-analytics-practical-training-certificate/
- Labor Code, 2020 (Crash Course) + Certificate: https://oneclik.in/labor-code2020-rules-practical-training-certificate-crash-course/
- Advance Excel Practical Training + Certificate: https://oneclik.in/advanced-excel-practical-training-certificate/
- Disciplinary Proceeding & Domestic Enquiry – Practical Training + Certificate: https://oneclik.in/disciplinary-proceeding-domestic-enquiry-short-term-course-with-latest-updates/
- PoSH Act, 2013 (Sexual Harassment Of Women At Workplace & Vishaka Guidelines) – Practical Training + Certificate: https://oneclik.in/sexual-harassment-of-women-at-workplace-vishaka-guidelines-short-term-course-with-latest-amendments/
- Compensation & Benefits – Practical Training + Certificate: https://oneclik.in/compensation-benefits-practical-training-certificate/
- Industrial Relations – Practical Training + Certificate: https://oneclik.in/industrial-relations-practical-training-certificate/
- Labour Code (2019 & 2020) With Latest Updates | Labour Bill (Labour-Law-Practical-Training): https://oneclik.in/labour-law-practical-training/ (Factory, Contact Labor, Maternity Act & more)
- PF – ESI Consultant Service: https://oneclik.in/pf-esi-consultant-service/
- Labor Law, Compliance & HR – Payroll Management
Get Latest HR, IR, Labor Law Updates, Case Studies & Regular Updates: (Join us on Social Media)
- Telegram Channel: “One Clik”
- Whatsapp Group: https://wa.me/919033016939
- Facebook: One Clik
- Linkedin: One Clik
- Instagram: oneclik_hr_management
- YouTube: One Clik
Disclaimer: All the information on this website/blog/post is published in good faith, fair use & for general informational purposes only and is not intended to constitute legal advice.