Date mixed sort in Excel 2007

Source: Internet
Author: User
Tags mixed sort

When you create a table using Excel 2007, you have an issue: Arrange a list of dates in Excel 2007 in the Order of the year from new to old, while the dates in the same year must be sorted in chronological order.

The specific solution is as follows: Date data begins with A2 cell, and the following b,c,d columns are named "Year", "Month" and "Day" respectively. Then enter "=year (A2)" in B2 and enter "=month (A2)" In the C2, and enter "D2 (=day)" in the A2. Drag and drop the row that contains the last data for the B2, C2, D2 to column A.

Arrange dates in reverse order of year, but in chronological sequence between dates of the same year

Click anywhere in the Excel 2007 table, and then click Start-Sort and filter-custom sort, then complete the following settings in the Sort dialog box that pops up: The primary keyword is "year", sorted by value, in descending order, and then click the Add Condition button. Similar to the primary keyword, set to Month, numeric, ascending, and click Add condition to set to day, value, ascending, and then click OK when you have finished the above settings. After getting the sort sequence you need, you can hide or delete the three columns of data that we added in order to sort.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.