How to Sort Date by Day of Week in Excel

Except sort data by “A to Z” (alphabetical order, for numbers from small to large), we can also sort data by date, month or year if these conditions are given. In this article, we will show you the way to sort data by day of week.

EXAMPLE

     ->     

In the left table, sales are sorted by date. Now, we want to sort them by day of week, see the table on the right side for example. Obviously, we cannot sort them just by clicking “Sort A to Z”, in this way day of week values will be sorted by alphabetical order. To sort data by proper order as we expected, we can create a customer list with the help of Sort->Custom List function.

RESOLUTION

Excel Sort module provides several sorting rules for users to sort data. Except normal “A to Z” or “Z to A”, it also provides orders like by month or by day of week. Users can also create custom list depends on requirement.

 STEPS

a. Select table A2:C15 ignoring the headers, click Data in the ribbon, click Sort button in Sort & Filter section.

b. Sort dialog pops up. In Column sort by dropdown list, select column “Day of Week”. Select the column you want to sort by in this step, as we want to sort data by day of week column, so we select it.

Keep Sort On selection unchanged, in Order dropdown list, select “Custom List”.

c. After selecting “Custom List”, “Custom Lists” dialog pops up. In Custom lists panel, select “Sunday, Monday…”, then day of week values are listed in the right panel with expected order, they are sorted from Sunday to Saturday.

d. Click OK on this dialog. We return to Sort dialog. Now in Order dropdown list, order “Sunday, Monday, Tuesday…” is displayed. Click OK to apply this setting for the selected table.

e. Now sales are sorted by day of week properly. The same values of day of week are grouped.

COMMENT

1. If we select day of week abbreviations like “Sun, Mon, Tue…” in “Custom lists” to sort data, data is sorted improperly, Friday is listed on top.

2. If selected range with headers included, we need to check on “My data has headers” when applying sorting settings. See screenshot below. This option is checked by default.

3. If you want to sort day of week by another order, for example from Monday to Sunday, you can just enter a new list in “List entries” panel. Enter “Monday” as the first entry, press Enter to separate list entries.

After creating your list, click Add button to add the new list to custom list. Then you can sort values by this new list properly.

 

Related Posts

If Cell is This Value or That Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of logical test. If you want to see if a cell is A or B, and if one of ...

If Value is Greater Than A Certain Value
If Value is Greater Than A Certain Value 1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the logical test result. If you want to see if a value in one cell is greater than a specific value, ...

If Cell is Not Blank
If Cell is Not Blank 6

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

VBA Macro For VLOOKUP From Another Sheet
vba macro for vlookup from another sheet1

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you how to use VBA code to vlookup data ...

If Cell is Blank
If Cell is Blank_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

If Cell Equals Certain Text String
If cell equals certain text_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if cell equals a certain text string like “Win”, you ...

If Cell Contains Either Text1 or Text2
If cell contains text1 or text2_1

IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to see if cell contains certain substring1 like “abc” or substring2 like “def”, and returns true ...

If Cell Contains Certain Text OR Equals Certain Text

IF cell equals certain text IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to test values to see if they equal certain text like ...

VLOOKUP From Another Sheet Not Working
vlookup from another sheet not working3

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you reasons why your VLOOKUP formula is not working ...

If Cell Begins with One of Three Supplied Characters
If Cell Begins with One of Three Supplied Characters

If you want to test values to see if they begin with some given specific characters like “x”, ”y”, or “z”, you can create a formula with COUNTIF and SUM functions to return results. EXAMPLE You can see “TRUE” or ...

Sidebar