Which day of week excel

Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 Excel 2016 for Mac Excel 2013 Excel 2010 Excel 2007 Excel for Mac 2011 Excel Starter 2010 More…Less

This article describes the formula syntax and usage of the WEEKDAY
 function in Microsoft Excel.

Description

Returns the day of the week corresponding to a date. The day is given as an integer, ranging from 1 (Sunday) to 7 (Saturday), by default.

Syntax

WEEKDAY(serial_number,[return_type])

The WEEKDAY function syntax has the following arguments:

  • Serial_number    Required. A sequential number that represents the date of the day you are trying to find. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.

  • Return_type    Optional. A number that determines the type of return value.

Return_type

Number returned

1 or omitted

Numbers 1 (Sunday) through 7 (Saturday). Behaves like previous versions of Microsoft Excel.

2

Numbers 1 (Monday) through 7 (Sunday).

3

Numbers 0 (Monday) through 6 (Sunday).

11

Numbers 1 (Monday) through 7 (Sunday).

12

Numbers 1 (Tuesday) through 7 (Monday).

13

Numbers 1 (Wednesday) through 7 (Tuesday).

14

Numbers 1 (Thursday) through 7 (Wednesday).

15

Numbers 1 (Friday) through 7 (Thursday).

16

Numbers 1 (Saturday) through 7 (Friday).

17

Numbers 1 (Sunday) through 7 (Saturday).

Remark

  • Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.

  • If serial_number is out of range for the current date base value, a #NUM! error is returned.

  • If return_type is out of the range specified in the table above, a #NUM! error is returned.

Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Data

2/14/2008

Formula

Description (Result)

Result

=WEEKDAY(A2)

Day of the week, with numbers 1 (Sunday) through 7 (Saturday) (5)

5

=WEEKDAY(A2, 2)

Day of the week, with numbers 1 (Monday) through 7 (Sunday) (4)

4

=WEEKDAY(A2, 3)

Day of the week, with numbers 0 (Monday) through 6 (Sunday) (3)

3

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

When working with date-specific information, there might be instances where you need to find the day of the week corresponding to a date.

For example, instead of the date, you may want to know whether it’s a Monday or a Tuesday or any other day.

This could be useful when working with to-do lists, daily/weekly summary reports, etc.

In this tutorial, we will see three different ways of converting dates to the corresponding day of the week in Excel.

For all the three methods in this tutorial, we will be using the following sample dataset.

Dataset to Convert Date to Day of Week in Excel

We will convert all the dates in the above sample dataset into corresponding days of the week.

Method 1: Converting Date to Day of Week in Excel using the TEXT Function

The TEXT function is a great function to convert dates to different text formats.

It takes a date serial number or date and lets you extract parts of the date to fit your required format.

Here’s the syntax for the TEXT function:

= TEXT (date, date_format_code)

In this function,

  • date is the date, date serial number, or reference to the cell that you want to convert.
  • date_format_code is the format code based on how you want the converted date to look.

The TEXT function applies the date_format_code that you specified on the provided date and returns a text string with that format.

For example, if you have the date “2/10/2018” in cell A2, then =TEXT(A2,”dddd”) will return “Saturday”.

Here, “dddd” is the date_format code to display the day of the week corresponding to date in full words.

Here are some basic building blocks for the format codes that you can use:

Format Codes for Day of the Week or Month:

You can use the following basic format codes to represent day values:

  • d – one or two-digit representation of the day (eg: 3 or 30)
  • dd – two-digit representation of the day (eg: 03 or 30)
  • ddd – the day of the week in abbreviated form (eg: Sun, Mon)
  • dddd – full name of the day of the week (eg: Sunday, Monday)

So,

  • if you apply =TEXT(A2, “d”) to the sample dataset, it will return “10”.
  • if you apply =TEXT(A2, “dd”), then it will return “10”.
  • if you apply =TEXT(A2, “ddd”) to the sample dataset, it will return “Sat”.
  • if you apply =TEXT(A2, “dddd”), then it will return “Saturday”.

Let us see how we can apply the TEXT function to our sample dataset to convert all the dates to days of the week.

We will first see how to convert the dates in column A to the format shown in column B in the image below:

Date to convert to the day name

Below are the steps to convert the date to a weekday name using the TEXT function:

  1. Click on a blank cell where you want the day of the week to be displayed (B2)
  2. Type the formula: =TEXT(A2,”ddd”) if you want the shortened version of the day or =TEXT(A2,”dddd”) if you want the full version of the day.
  3. Press the Return key.
  4. This should display the day of the week in our required format. Copy this to the rest of the cells in the column by dragging down the fill handle or double-clicking on it.
  5. Copy this column’s formula results by pressing CTRL+C or Cmd+C (if you’re on a Mac).
  6. Right-click on the column, and from the popup menu that appears, press Paste Values from the Paste Options.
  7. This will store the formula results as permanent values in the same column. Now you can go ahead and remove column A if you want to.

You should see all the dates converted to the short form of their corresponding days of the week:

Date converted in the day name

The result you get in column B will differ according to the format code you used in step 2. Here are some format codes along with the type of result you will get when applied to cell A2:

Function Result
=TEXT(A2, “ddd”) Sat
=TEXT(A2, “dddd”) Saturday

Note: Using this formula, your converted date is in text format, so you will see the results aligned to the left side of the cells.

Also read: How to Convert Date to Serial Number in Excel?

Method 2: Converting Date to Day of Week in Excel using the Format Cells Feature

The Format Cells feature provides a great way to directly convert your dates to days of the week while replacing the existing dates. As such you don’t need to have a separate column to type the formula.

You can use the Format Cells dialog box to convert your dates to days of the week as follows:

  1. Select all the cells containing the dates that you want to convert (A2:A8).
  2. Right-click on your selection and select Format Cells from the popup menu that appears. Alternatively, you can select the dialog box launcher in the Number group under the Home tab.
  3. This will open the Format Cells dialog box. Click on the Number tab
  4. Under Category on the left side of the box, select the Custom option.
  5. This will display a number of formatting options on the right side, under Type. You can type in your format code in the Type field. You can type in “ddd” if you want the short form or “dddd” if you want the full form of the day.
  6. Click OK to close the Format Cells dialog box.
Format cells dialog box

All your selected cells should now appear as weekday names.

Note: By using Format Cells, you have just changed the format in which the dates are displayed in the cells. The actual dates are underlying the cells and can be seen in the formula bar when a cell is selected.

Formula bar still shows the full date
Also read: How to Convert Text to Date in Excel?

Method 3: Converting Date to Day of Week in Excel using a Formula

If you’d rather use your own representation for the days of the week, you can use a formula based on both the WEEKDAY and CHOOSE functions.

First, let us understand these two functions individually.

The WEEKDAY Function

The WEEKDAY function converts a date to a number between 1 and 7, one for each day of the week. It chooses the sequencing of these numbers based on the day we want the week to begin from.

This is helpful because in some countries, the week starts from Sunday, while in others, especially Middle Eastern countries, the week starts from Saturday.

The syntax for the WEEKDAY function is:

WEEKDAY(date, [type])

Here,

  • date is the input date for the function. It can be a date, a date serial number, or a reference to a cell that holds a date value.
  • type is an optional parameter. It tells the function where to begin the week from. So, if we put a 1, it means the week should start from Sunday and end on Saturday. If we put a 2, it means the week should start from Monday and end on Sunday, and so on. By default, the value for the type parameter is set to 1.

In our example, WEEKDAY(A2, 1) will return 7, corresponding to a Saturday.

The CHOOSE Function

The CHOOSE function lets you specify a particular outcome depending on a value. For example, you can choose to display the word “red” if a value is 1, “blue” if it is 2, “green” if it is 3, and so on.

In this way it’s a great alternative to using a bunch of nested IF functions.

The syntax for the CHOOSE function is:

=CHOOSE (index, value1, [value2], ...)

Here,

  • index is the input value. It can be any number between 1 and 254.
  • value1 is the first value from the list of possible outputs
  • value2 is the second value from the list of possible outputs,

etc.

The function returns value1 if index is 1, value2 if index is 2, etc.

So the function: =CHOOSE(3, “sun”,”mon”,”tue”,”wed”,”thu”,”fri”, ”sat”) will return “tue”, because it’s the third value in the list.

Putting the Formula Together

Let us put the two functions CHOOSE and WEEKDAY together to convert date to day of the week. Here are the steps to follow:

  1. Click on a blank cell where you want the day of the week to be displayed (B2)
  2. Type the formula: =CHOOSE(WEEKDAY(A2),”Sun”,”Mon”,”Tue”,”Wed”,”Thu”,”Fri”,”Sat”)
  3. Press the Return key.
  4. This should display the day of the week in short form, corresponding to the date in A2. Copy this to the rest of the cells in the column by dragging down the fill handle or double-clicking on it.
  5. Copy this column’s formula results by pressing CTRL+C or Cmd+C (if you’re on a Mac).
  6. Right-click on the column and form the popup menu that appears, press Paste Values from the Paste Options.
  7. This will store the formula results as permanent values in the same column. Now you can go ahead and remove column A if you want to.

Here’s what you should get as the result:

Getting day of the week using choose and weekday

How did this Formula Work?

To understand how this formula worked, we need to break it down:

  1. First, we used the WEEKDAY function to find the number corresponding to the day of the week, assuming our week starts from Sunday. This will return a number between 1 and 7.
  2. We used the output of the WEEKDAY function to find the string from the list of days [“sun”,”mon”,”tue”,”wed”,”thu”,”fri”, “sat”] corresponding to that number. So if the output for WEEKDAY(A2) was 7, then the corresponding output for the CHOOSE function will be the seventh item in the list, which is “sat”.

Thus we get the day corresponding to the date in A2 (in our example) to be “sat”.

Note: The above formula will give your converted date in text format, so you will see the results aligned to the left side of the cells.

You could also have any other format for the days in the list, for example, if you wanted to display just the first two letters for the days, you could have written the formula in step 2 as:

=CHOOSE(WEEKDAY(A2),"Su","Mo","Tu","We","Th","Fr","Sa")

So you could get an output as:

Getting day of the week using choose and weekday - 2 letter

If you wanted to make a to-do list, you could even have an activity for each day of the week. For example, you could use the formula:

=CHOOSE(WEEKDAY(A2),"cycling","rollerblading","swimming","skiing","art","crafts","free time")

So you could get an output as:

Getting specific activities for each day

In this tutorial, we saw three ways to convert a date to the day of the week.

The first method involves a function (TEXT), the second method involves a commonly used Excel dialog box (Format Cells) and the third method involves an Excel formula (with WEEKDAY and CHOOSE functions).

We hope you found this tutorial helpful and easy to apply to your data.

Other Excel tutorials you may find useful:

  • How to Convert Serial Numbers to Date in Excel
  • How to Convert Date to Month and Year in Excel
  • How to Get Total Days in Month in Excel?
  • How to Add Days to a Date in Excel
  • How to Sort by Date in Excel (Single Column & Multiple Columns)
  • Why are Dates Shown as Hashtags in Excel?
  • How to Convert Month Number to Month Name in Excel
  • How to Convert Days to Years in Excel (Simple Formulas)
  • How to Get the First Day Of The Month In Excel?

What day of the week is 2019-11-14? Is it a Monday, Tuesday, Wednesday, etc…

It’s pretty common to want to know what day of the week a given date falls on and unless you’ve got some sort of gift for knowing that, you’re going to need a way to figure it out.

In Excel, there are many different ways to determine this. In this post, we’re going to explore 7 ways to achieve this task.

Format a Date as the Weekday Name

The first option we’re going to look at involves formatting our date cells.

Dates in Excel are really just serial numbers starting at 1 for the date 1900-01-01. Formatting is what makes the date look like a date.

There are many ways to format these serial numbers to display the date in various formats like yyyy-mm-dd, dd/mm/yyyy, dd-mmm-yy etc…

One of the possible formatting options for these serial numbers is to display the weekday name with a custom dddd or ddd format.

We can format our dates from the Format Cells dialog box.

  1. Select the dates which we want to convert into weekday names.
  2. Go to the Home tab and click on the small launch icon in the lower right corner of the Number section. This will open up the Format Cells dialog box. We can also open up the Format Cells dialog a few other ways.
    • The keyboard shortcut Ctrl + 1.
    • Right click on the selected cells ➜ choose Format Cells from the menu.
  3. Go to the Number tab in the Format Cells dialog box.
  4. Select Custom as the Category.
  5. Add dddd into the Type field for the full weekday name or ddd for the abbreviated weekday name.
  6. Press the OK button.

Now our dates will appear as the weekday names in the worksheet. The dates are still inside the cells and can be seen in the formula bar when a cell is selected.

Get the Weekday Name with the TEXT Function

The TEXT function will allow us to convert numbers to text and apply formatting to those numbers.

= TEXT ( 1234 , "$#,###" )

We can use the TEXT function to convert the number 1234 into the text string $1,234 with the above formula.

Since dates are really just serial numbers, we can use this function to convert any date into a text string with the weekday name format.

TEXT Syntax

= TEXT ( Value , Format )
  • Value (required) is the value to convert to a text string.
  • Format (required) is the formatting to apply when converting to a text string.

=TEXT ( B2, "dddd" )

The above formula will convert our date value in cell B2 into the corresponding weekday name. In this example we get a value of Friday from the date 2020-09-18.

Get the Weekday Number with the WEEKDAY Function

While the results aren’t quite as useful, there is also a WEEKDAY function in Excel.

This will convert a date into a corresponding number between 1 and 7 representing the weekday.

WEEKDAY Syntax

= WEEKDAY ( Date , [Type] )
  • Date (required) the date to find the weekday number from.

  • Type (optional) the weekday number type to return.
    • Omitted or 1 returns 1 for Sunday through 7 for Saturday.
    • 2 returns 1 for Monday through 7 for Sunday.
    • 3 returns 0 for Monday through 6 for Sunday.
    • 11 returns 1 for Monday through 7 for Sunday.
    • 12 returns 1 for Tuesday through 7 for Monday.
    • 13 returns 1 for Wednesday through 7 for Tuesday.
    • 14 returns 1 for Thursday through 7 for Wednesday.
    • 15 returns 1 for Friday through 7 for Thursday.
    • 16 returns 1 for Saturday through 7 for Friday.
    • 17 returns 1 for Sunday through 7 for Saturday.

= WEEKDAY ( B2, 1 )

The above formula will convert our date value in cell B2 into the corresponding weekday number. The second argument value of 1 will return a 1 for Sunday through to 7 for a Saturday. In this case 2019-09-18 returns a 6 because it’s a Friday.

Combining SWITCH with WEEKDAY to Return the Weekday Name

On its own, the WEEKDAY function can only return a number representing the weekday, but we can combine it with the SWITCH function to get the weekday name.

= SWITCH ( WEEKDAY ( B2, 1 ),
	1, "Sun",
	2, "Mon",
	3, "Tue",
	4, "Wed",
	5, "Thu",
	6, "Fri",
	7, "Sat" )

The WEEKDAY function returns a number from 1 to 7 and we can then use the SWITCH function to assign a weekday name to each of these numbers.

Get the WEEKDAY Name Using Power Query

Power Query (also known as Get & Transform) is a powerful data wrangling tool available in Excel 2016 onward.

It makes any data transformation easy and it can get the name of the weekday too.

We first need to import our data into the power query editor. We need our data inside an Excel table.

  1. Select a cell inside the Excel table containing the dates.
  2. Go to the Data tab in the ribbon.
  3. Press the From Table/Range command in the Get & Transform Data section.

This will open up the power query editor.

We can now transform our dates into the name of the weekday.

  1. We need to make sure the column is converted to the date data type. Click on the icon in the left of the column heading and select Date from the options.
  2. With the date column selected, go to the Add Column tab.
  3. Select Date ➜ Day ➜ Name of Day.

= Table.AddColumn( #"Changed Type", "Day Name", each Date.DayOfWeekName( [Date] ), type text )

This will add a new column containing the weekday name and we can see the M code that’s generated in the power query formula bar. This uses the Date.DayOfWeekName power query function.

A similar command can be found in the Transform tab. The difference is, this will not add a new column, but rather transform the selected column.

Get the WEEKDAY Name in a Pivot Table with the WEEKDAY DAX Function

Did you know you can summarize text values with a pivot table?

Well, we can go a step further and summarize our dates as a list of weekday names inside our pivot table using a DAX measure!

We need to create a pivot table from our data.

  1. Select a cell inside the data.
  2. Go to the Insert tab in the ribbon.
  3. Press the PivotTable command.
  4. In the Create PivotTable menu check the option to Add this data to the Data Model and press the OK button.

This will create a new blank pivot table in the workbook and add the data into the data model. Adding the data to the data model will allow us to use the DAX formula language with our pivot table.

Now we can create a measure to convert our dates into names and summarize the results into a comma separated list.

  1. Select a cell inside the pivot table.
  2. Right click on the table in the PivotTable Fields window and select Add Measure from the menu options.

This will open up the DAX formula editor and we can create our DAX measure.

We can now add the following formula into the DAX formula editor.

= CONCATENATEX (
    Activities,
    SWITCH (
        WEEKDAY ( Activities[Date], 1 ),
        1, "Sun",
        2, "Mon",
        3, "Tue",
        4, "Wed",
        5, "Thu",
        6, "Fri",
        7, "Sat"
    ),
    ", "
)
  1. Give our new measure a name like Name of Days.
  2. Add the above DAX formula into the formula box.

To see the results of our DAX formula, all we need to do is add it into the Values area of our PivotTable Fields window.

This is very similar to the WEEKDAY function solution with Excel functions. The only difference is we need to aggregate the results with a CONCATENATEX function to display inside our pivot table.

Get the Weekday Name in a Pivot Table with the FORMAT DAX Function

Another DAX function we can use to get the weekday name is the FORMAT function. This is very similar to Excel’s TEXT function and will allow us to apply a custom format to our date values.

= CONCATENATEX ( Activities, FORMAT ( Activities[Date], "dddd" ), ", " )

The process is the exact same as the previous DAX example, but instead we create a measure with the above formula.

Get the Weekday Name with a Power Pivot Calculated Column

If you have the power pivot add-in for Excel, then you can use DAX to create a calculated column in the data model.

If our data isn’t already in the data model, we can easily add it by going to the Power Pivot tab in the ribbon ➜ selecting Add to Data Model.

Now we can open up the power pivot window by going to the Power Pivot tab  ➜ selecting Manage Data Model.

= FORMAT ( Activities[Date], "dddd" )

Inside the power pivot window, we can add our new calculated column.

  1. Double click on the Add Column heading and give the new column a name like Weekday.
  2. Select a cell inside the new column and add the above DAX formula into the formula bar and press enter.

When we close the power pivot window, we now have the new Weekday field available to use in our pivot table and we can add it into the Rows, Columns or Filter area of the pivot table.

Conclusions

There are lots of options to get the name of the day from a date in Excel.

We covered formatting, Excel formulas, power query and DAX formulas in the data model.

There are probably a few more ways as well. Let me know in the comments if I missed your favourite method.

About the Author

John MacDougall

John is a Microsoft MVP and qualified actuary with over 15 years of experience. He has worked in a variety of industries, including insurance, ad tech, and most recently Power Platform consulting. He is a keen problem solver and has a passion for using technology to make businesses more efficient.

Is it a weekday or weekend? Will we be partying out late on New Year’s Eve during the weekend or preparing to bustle to our schools and offices the next day? Are you closed for business on a certain holiday? What day would that be? For all serious and non-serious reasons, this tutorial will show you how to convert a date into its corresponding day of the week.

If your data is blazing with dates (this is especially true for daily planners, reports, etc.), it may be helpful to know the day of the week for grouping, organizing, and analyzing the data. To work out the day of the week from a date, we will use functions and number formats explained in detail in the segments below. Let’s get to it.

Get Day Of Week From Date In ExcelGet Day Of Week From Date In Excel

Using TEXT Function

Our first candidate for the job is the TEXT function. The TEXT function converts a value to text in the specified number format, which suits our objective perfectly. We will supply the date to the TEXT function. The format for the result will be the day name. Let’s put everything to work.

Here’s the formula we will apply:

=TEXT(B3,"dddd")

The value that the TEXT function needs to convert into text is the date in cell B3. For the full name of the day of the week, we have enclosed dddd in double-quotes. You can pass other formats to the TEXT function:

  • d: returns the date in a single-digit or in double digits if the date is in double digits (will return 1 for 1/1/21 and 31 for 31/1/21).
  • dd: returns the date in double digits (will return 01 for 1/1/21 and 31 for 31/1/21).
  • ddd: returns the day of the week’s first 3 letters (will return Fri for 1/1/21).
  • dddd: returns the day of the week in its full name (will return Friday for 1/1/21).

Here are all these formats applied in the TEXT function to arrive at a single date or the day of the week from a complete date:

Get-Day-Of-Week-From-Date-Using-Text-Function-01

Child’s play, isn’t it?

Using WEEKDAY & CHOOSE Functions

The WEEKDAY and CHOOSE functions can be used together to get the day name from a date. By the looks of it, the WEEKDAY function should be enough for the purpose so what is the CHOOSE function doing? We believe some intros are due here.

The WEEKDAY function returns a number from 1 to 7, identifying the day of the week from a given date. But we don’t want a number right now, we want the full day name and that’s where the CHOOSE function comes in.

The CHOOSE function chooses a value from a list of values based on an index number. See the connection here? That index number is going to be supplied by the WEEKDAY function and then the CHOOSE function will choose its value from the list of values; the list of values being the days of the week.

Let’s give you some practical outlook on how this works. Have a look at the formula before we explain what is going on:

=CHOOSE((WEEKDAY(B12)),"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")

This is the formula we have used in the cells C3 and C4:

Get-Day-Of-Week-From-Date-Using-WEEKDAY-&-CHOOSE-Formula-02

In the first instance at cell C3 first off, the WEEKDAY function is supplied with the date. The WEEKDAY function returns 6 which indicates Friday. Unless defined otherwise, the WEEKDAY function inherently counts the week from Sunday. WEEKDAY’s result is passed onto the CHOOSE function which picks out the day from the supplied list. The 6th value is «Friday» which is the final outcome.

If you find inserting so much data into the CHOOSE function tiresome with all the double quotes, you can form a table of the list to be used within the function and supply the CHOOSE function with the cell references from the table. Having a separate table with the values also notably shrinks the whole formula.

Note: Since we have used the WEEKDAY function in its default form so it counts the week starting from Sunday. This is why we have listed the days in the CHOOSE function starting from Sunday. If you want the week to start from Monday or any other day for that matter, you need to add the second argument to the WEEKDAY function. For more details we recommend you to go through our WEEKDAY Function article here.

While the WEEKDAY and CHOOSE functions do the job, compared to the TEXT function, they have too much to deal with; the first indicator being that two functions are being used instead of one. For this purpose of getting the day name from a date, we find the TEXT function far easier and much less complex with a shorter formula.

Using Format Cells Feature To Convert a Date to Day Of Week

This option entails changing the format of the date, no function or formula is required. Though you will still be able to see the date in the Formula Bar when you select the cell, on the face of it, the day name will replace the date. If you still want to keep the date, you can paste the dates to another column and then change the format in the new column. Let’s show you the steps to do this:

  • Paste all the dates to a new column.

Get-Day-Of-Week-From-Date-Using-Format-Cells-03

  • Select the dates in the new column and launch the Format Cells dialog box in one of the ways below:
    • Press Ctrl + 1 OR
    • Right-click the selected cells, then select Format Cells in the right-click context menu.

Get-Day-Of-Week-From-Date-Using-Format-Cells-04

  • In the launched Format Cells dialog box, in the Number tab, select the Custom In the Type bar, enter one of the following formats:
    • ddd: returns the day of the week’s first 3 letters (will return Fri for 1/1/21).
    • dddd: returns the day of the week in its full name (will return Friday for 1/1/21).
  • Then click OK.

Get-Day-Of-Week-From-Date-Using-Format-Cells-05

And then we will have the days corresponding to the dates. Selecting any day will display its date in the Formula Bar.

Get-Day-Of-Week-From-Date-Using-Format-Cells-06

Format to Date With Day Of Week Using Long Date Format

This option, like the previous one, requires no formulas or functions and is achievable in a few clicks. If you are comfortable with the format (i.e. dddd, mmmm dd, yyyy) then the Long Date format should do it for you. If you are looking out to just get the day name separately, one of the three options mentioned above is the way to go. If you decide on having the long date displayed, here’s how:

  • Select the dates.
  • Go to Home tab > Number group. Click on the little arrow on the number bar to access the drop-down menu.
  • Select the Long Date

Get-Day-Of-Week-From-Date-Using-Format-Cells-07

  • There are the dates in the Long Date format. Again, this is a format so the original date will get displayed in the formula bar when the cell is selected.

Get-Day-Of-Week-From-Date-Using-Format-Cells-08

Let’s call it a day now. We hope to have given you some easy options for converting dates to week day names. Remember to resort to the first three methods if you’re aiming to have the days of the week identified separately. If you’re okay with the Long Date format which contains the day and complete date, the final segment of this guide is your go-to. We’ll head back with another piece of the Excel puzzle soon! Let’s keep building and learning!

Purpose 

Get the day of the week as a number

Return value 

A number between 0 and 7.

Usage notes 

The WEEKDAY function takes a date and returns a number between 1-7 representing the day of the week. The WEEKDAY function takes two arguments: serial_number and return_typeSerial_number should be a valid Excel date in serial number format. Return_type is an optional numeric code that controls which day of the week is considered the first day. By default, WEEKDAY returns 1 for Sunday and 7 for Saturday, as seen in the table below:

Result Meaning
1 Sunday
2 Monday
3 Tuesday
4 Wednesday
5 Thursday
6 Friday
7 Saturday

WEEKDAY supports several numbering schemes, controlled by the return_type argument. Return_type is optional and defaults to 1. The table below shows available return_type codes, the numeric result of each code, and which day is the first day in the mapping scheme.

Return type Numeric result Day mapping
none 1-7 Sunday-Saturday
1 1-7 Sunday-Saturday
2 1-7 Monday-Sunday
3 0-6 Monday-Sunday
11 1-7 Monday-Sunday
12 1-7 Tuesday-Monday
13 1-7 Wednesday-Tuesday
14 1-7 Thursday-Wednesday
15 1-7 Friday-Thursday
16 1-7 Saturday-Friday
17 1-7 Sunday-Saturday

Note: the WEEKDAY function will return a value even when the date is empty. Take care to trap this result if blank dates are possible.

Examples

By default and without a value fore return_type, WEEKDAY starts counting on Sunday:

=WEEKDAY("3-Jan-21") // Sunday, returns 1
=WEEKDAY("4-Jan-21") // Monday, returns 2

To configure WEEKDAY to start on Monday, set return_type to 2:

=WEEKDAY("3-Jan-21",2) // Sunday, returns 7
=WEEKDAY("4-Jan-21",2) // Monday, returns 1

In the example shown above, the formula in D5 (copied down) is:

=WEEKDAY(B5) // Sunday start

The formula in E5 (copied down) is:

=WEEKDAY(B5,2) // Monday start

Notes

  • By default, WEEKDAY returns 1 for Sunday and 7 for Saturday.
  • WEEKDAY returns a value (7) even if the date is empty.

Содержание

  • Отображение дня недели в Экселе
    • Способ 1: применение форматирования
    • Способ 2: использование функции ТЕКСТ
    • Способ 3: применение функции ДЕНЬНЕД
  • Вопросы и ответы

День недели в Microsoft Excel

При работе в программе Excel иногда ставится задача, чтобы после ввода конкретной даты в ячейку выводился день недели, который ей соответствует. Естественно, решить данную задачу посредством такого мощного табличного процессора, как Эксель, возможно, причем несколькими способами. Давайте посмотрим, какие варианты существуют для выполнения данной операции.

Отображение дня недели в Экселе

Существуют несколько способов отобразить день недели по введенной дате, начиная от форматирования ячеек и заканчивая применением функций. Давайте взглянем на все существующие варианты выполнения указанной операции в Экселе, чтобы пользователь мог выбрать самый лучший из них для конкретной ситуации.

Способ 1: применение форматирования

Прежде всего, посмотрим, как при помощи форматирования ячеек можно отобразить день недели по введенной дате. Данный вариант подразумевает преобразование даты в указанное значение, а не сохранение отображения обоих этих видов данных на листе.

  1. Вводим любую дату, содержащую данные о числе, месяце и годе, в ячейку на листе.
  2. Дата в Microsoft Excel

  3. Кликаем по ячейке правой кнопкой мыши. Запускается контекстное меню. Выбираем в нем позицию «Формат ячеек…».
  4. Переход в окно форматирования в Microsoft Excel

  5. Запускается окно форматирования. Перемещаемся во вкладку «Число», если оно было открыто в какой-нибудь другой вкладке. Далее в блоке параметров «Числовые форматы» устанавливаем переключатель в позицию «Все форматы». В поле «Тип» вручную вводим следующее значение:

    ДДДД

    После этого щелкаем по кнопке «OK» внизу окна.

  6. Окно форматирования в Microsoft Excel

  7. Как видим, в ячейке вместо даты отобразилось полное наименование дня недели ей соответствующего. При этом, выделив данную ячейку, в строке формул вы все равно увидите отображение даты.

День недели отобразился в ячейке в Microsoft Excel

В поле «Тип» окна форматирования вместо значения «ДДДД» можно также ввести выражение:

ДДД

Окно формат ячеек в Microsoft Excel

В этом случае на листе будет отображено сокращенное наименование дня недели.

Краткое отображение дня недели в Microsoft Excel

Урок: Как изменить формат ячейки в Экселе

Lumpics.ru

Способ 2: использование функции ТЕКСТ

Но способ, который был представлен выше, предусматривает преобразование даты в день недели. Существует ли вариант, чтобы оба эти значения выводились на листе? То есть, если в одной ячейке мы вводим дату, то в другой должен выводиться день недели. Да, такой вариант существует. Его можно осуществить при помощи формулы ТЕКСТ. В этом случае нужное нам значение будет выводиться в указанную ячейку в текстовом формате.

  1. Записываем дату на любом элементе листа. Затем выделяем любую пустую ячейку. Щелкаем по пиктограмме «Вставить функцию», которая расположена возле строки формул.
  2. Переход в Мастер функций в Microsoft Excel

  3. Происходит запуск окошка Мастера функций. Переходим в категорию «Текстовые» и из списка операторов выбираем наименование «ТЕКСТ».
  4. Переход в окно аргументов функции ТЕКСТ в Microsoft Excel

  5. Открывается окно аргументов функции ТЕКСТ. Данный оператор призван выводить указанное число в выбранном варианте текстового формата. Он имеет следующий синтаксис:

    =ТЕКСТ(Значение;Формат)

    В поле «Значение» нам нужно указать адрес той ячейки, в которой содержится дата. Для этого устанавливаем курсор в указанное поле и левой кнопкой мыши щелкаем по этой ячейке на листе. Адрес тут же отобразится.

    В поле «Формат» в зависимости от того, какое мы хотим иметь представление дня недели полное или сокращенное, вводим выражение «дддд» или «ддд» без кавычек.

    После ввода этих данных жмем на кнопку «OK».

  6. Окно аргументов функции ТЕКСТ в Microsoft Excel

  7. Как видим в ячейке, которую мы выбрали в самом начале, отобразилось обозначение дня недели в выбранном текстовом формате. Теперь у нас на листе отображается и дата, и день недели одновременно.

Результат обработки данных функцией ТЕКСТ в Microsoft Excel

Более того, если в ячейке изменить значение даты, то соответственно автоматически изменится и день недели. Таким образом, меняя дату можно узнавать на какой день недели она будет приходиться.

Данные изменены в Microsoft Excel

Урок: Мастер функций в Экселе

Способ 3: применение функции ДЕНЬНЕД

Имеется ещё один оператор, который может выводить день недели по заданной дате. Это функция ДЕНЬНЕД. Правда, она выводит не название дня недели, а его номер. При этом пользователь может устанавливать с какого дня (с воскресенья или с понедельника) нумерация будет отсчитываться.

  1. Выделяем ячейку для вывода номера дня недели. Щелкаем по значку «Вставить функцию».
  2. Вставить функцию в Microsoft Excel

  3. Снова открывается окошко Мастера функций. На этот раз переходим в категорию «Дата и время». Выбираем наименование «ДЕНЬНЕД» и жмем на кнопку «OK».
  4. Переход в окно аргументов функции ДЕНЬНЕД в Microsoft Excel

  5. Производится переход в окно аргументов оператора ДЕНЬНЕД. Он имеет следующий синтаксис:

    =ДЕНЬНЕД(дата_в_числовом_формате;[тип])

    В поле «Дата в числовом формате» вводим конкретную дату или адрес ячейки на листе, в которой она содержится.

    В поле «Тип» задается число от 1 до 3, которое определяет, как именно будут нумероваться дни недели. При установке числа «1» нумерация будет происходить, начиная с воскресенья, причем этому дню недели будет присвоен порядковый номер «1». При установке значения «2» нумерация будет выполняться, начиная с понедельника. Этому дню недели будет дан порядковый номер «1». При установке значения «3» нумерация так же будет происходить с понедельника, но в этом случае понедельнику будет присвоен порядковый номер «0».

    Аргумент «Тип» не является обязательным. Но, если его опустить, то считается, что значение аргумента равно «1», то есть, неделя начинается с воскресенья. Так принято в англоязычных странах, но нам данный вариант не подходит. Поэтому в поле «Тип» ставим значение «2».

    После выполнения указанных действий щелкаем по кнопке «OK».

  6. Окно аргументов функции ДЕНЬНЕД в Microsoft Excel

  7. Как видим, в указанную ячейку выводится порядковый номер дня недели, который соответствует введенной дате. В нашем случае это число «3», которое обозначает среду.

Результат обработки данных функцией ДЕНЬНЕД в Microsoft Excel

Как и с предыдущей функцией, при изменении даты автоматически изменяется номер дня недели в ячейке, в которой установлен оператор.

Изменение даты в Microsoft Excel

Урок: Функции даты и времени в Экселе

Как видим, в Экселе существуют три основных варианта представления даты в виде дня недели. Все они относительно просты и не требуют от пользователя наличия каких-то специфических умений. Один из них заключается в применении специальных форматов, а два других для достижения указанных целей используют встроенные функции. Учитывая, что механизм и способ отображения данных в каждом описанном случае существенно отличаются, пользователь должен сам выбрать, какой из указанных вариантов в конкретной ситуации ему подходит более всего.

В Microsoft Excel есть разные форматы ячеек, среди которых находятся и отвечающие за дату. Обычно они отображают значение в числовом виде с расстановкой точек между днем, месяцем и годом. Из-за этого у некоторых пользователей возникает потребность в отображении именно дня недели по указанной дате, чтобы организовать нужное представление содержимого. Достичь желаемого результата можно тремя разными методами.

Перед тем как мы обратимся к инструкциям, обращаю ваше внимание на то, что исчисление лет в Экселе начинается с 01.01.1900. Соответственно, программа не сможет показать день недели по дате, если она была раньше указанной, например, 19.01.1854. При использовании таких дат придется обращаться только к сторонним календарям и заполнять таблицу вручную.

Изменение формата ячейки

Самый простой и быстрый вариант для реализации, не требующий применения дополнительных функций, – изменение формата ячейки, чтобы Excel отображал число как конкретный день недели. Такой метод подойдет в тех случаях, когда вам нужно именно конвертировать дату в день недели. Настройка формата ячейки осуществляется следующим образом:

  1. Щелкните по ячейке с датой правой кнопкой мыши и из появившегося контекстного меню выберите пункт «Формат ячеек».Переход к настройке формата ячейки в Microsoft Excel

  2. В новом окне на панели слева выделите левой кнопкой мыши пункт «Все форматы», после чего самостоятельно укажите тип как ДДДД.Ручной ввод формата ячейки в Microsoft Excel

  3. Обратите внимание на поле «Образец», чтобы пример показывался как текстовое описание дня недели, после чего примените изменения.Проверка примера формата ячейки в Microsoft Excel

  4. Вернитесь к таблице, выделите нужную ячейку и убедитесь в том, что результат вас устраивает. Просмотр результата изменения формата ячейки в Microsoft Excel

Комьюнити теперь в Телеграм

Подпишитесь и будьте в курсе последних IT-новостей

Подписаться

Использование функции ТЕКСТ

Следующий вариант отображения дня недели по дате – использование функции ТЕКСТ. Она работает таким образом, что переводит любой формат ячейки в текстовый с дополнительным указанием типа. Как раз тип мы будем использовать такой же, который выбирали и в предыдущей инструкции. Разница будет лишь в том, что значение ячейки с датой у вас не заменится, а день недели просто будет выведен в одной из соседних ячеек по вашему выбору.

  1. Выберите любую свободную ячейку для подставления имеющегося значения и объявите в ней функцию =ТЕКСТ().Объявление функции ТЕКСТ в Microsoft Excel

  2. В скобках в первую очередь выберите ячейку с датой, кликнув по ней левой кнопкой мыши. Затем поставьте знак «;» для перехода к следующему аргументу.Добавление даты в функцию ТЕКСТ для перевода в день недели в Microsoft Excel

  3. Задайте кавычки и внутри них напишите дддд, чтобы указать нужный тип формата ячейки.Добавление формата для функции ТЕКСТ в Microsoft Excel

  4. Примените ввод формулы через Enter и посмотрите, как будет выведена ваша дата в виде дня недели. Эту формулу можно растянуть и на все следующие даты, если в таблице много строк, конвертирование которых требуется.Результат применения функции ТЕКСТ для перевода даты в день недели в Microsoft Excel

Использование функции ДЕНЬНЕД

Следующая функция под названием ДЕНЬНЕД является автоматической, то есть вам не придется никакой формат вписывать вручную или заниматься расчетами. Отличие этого варианта от предыдущих – день недели будет выведен в виде цифры в выбранной ячейке. Иногда это будет полезно при использовании дополнительных формул, связанных с днями недели.

  1. Объявите функцию =ДЕНЬНЕД().Объявление функции ДЕНЬНЕД в Microsoft Excel

  2. В скобках выберите ячейку с датой, день недели которой вы хотите вывести.Выбор даты для функции ДЕНЬНЕД в Microsoft Excel

  3. После точки с запятой появится список с вариантами начала исчисления дней недели. Первый вариант подходит в тех случаях, если первым днем недели для вас является воскресенье, а последним – суббота. Второй является стандартным для СНГ-стран, поскольку первый день будет понедельник, а последний – воскресение. Посмотрите на весь список и решите, какой из этих вариантов подходит вам.Выбор типа исчисления дней недели в функции ДЕНЬНЕД в Microsoft Excel

  4. Подходящий вариант нужно указать просто цифрой, после чего можно применить функцию и посмотреть, какая цифра будет выведена в качестве результата дня недели для даты.Результат применения функции ДЕНЬНЕД в Microsoft Excel

Каждый из трех представленных вариантов перевода даты в день недели подойдет в разных случаях. Иногда можно ограничиться конвертированием формата ячейки, а иногда пригодится именно отображение дня как цифры, чтобы дальше вклинить значение в свою формулу и использовать в таблице.

WEEKDAY | NETWORKDAYS | WORKDAY | NETWORKDAYS.INTL | Fill Weekdays | WORKDAY.INTL | Highlight Weekdays

Use WEEKDAY, NETWORKDAYS and WORKDAY to create cool weekday formulas in Excel. Are you ready to improve your Excel skills?

WEEKDAY

The WEEKDAY function in Excel returns a number from 1 (Sunday) to 7 (Saturday) representing the day of the week of a date.

1. The WEEKDAY function below returns 2. 12/22/2025 falls on a Monday.

WEEKDAY function in Excel

2. You can also use the TEXT function to display the day of the week.

TEXT function

3. Or create a custom date format (dddd) to display the day of the week. Cell A1 still contains a date.

Custom Date Format

NETWORKDAYS

The NETWORKDAYS function in Excel returns the number of workdays between two dates. NETWORKDAYS excludes weekends (Saturday and Sunday).

1. The NETWORKDAYS function below returns 11. There are 11 workdays between 12/17/2025 and 12/31/2025.

NETWORKDAYS function

Explanation: the NETWORKDAYS function includes the start date and the end date. The calendar below helps you understand this formula. Simply count the number of circles.

Calendar

2. If you supply a list of holidays, the NETWORKDAYS function also excludes holidays.

Workdays

Explanation: simply count the number of circles in the calendar below.

Calendar

WORKDAY

The WORKDAY function in Excel returns the date before or after a specified number of workdays. WORKDAY excludes weekends (Saturday and Sunday).

1. The WORKDAY function below returns the date 1/1/2026.

WORKDAY function

Explanation: the WORKDAY function does not include the start date. The calendar below helps you understand this formula. There are 11 circles.

Calendar

2. If you supply a list of holidays, the WORKDAY function also excludes holidays.

11 Workdays Later

Explanation: there are 11 circles in the calendar shown below.

Calendar

NETWORKDAYS.INTL

Use NETWORKDAYS.INTL instead of NETWORKDAYS to specify different weekend days. Use a string of 0’s and 1’s (third argument) to specify which days are weekend days.

1. The NETWORKDAYS.INTL function below returns 8.

NETWORKDAYS.INTL

Explanation: the first 0 tells Excel that Monday is not a weekend day. The second 0 tells Excel that Tuesday is not a weekend day, etc. In this example, Friday, Saturday and Sunday are weekend days. The calendar below helps you understand this formula.

Calendar

Fill Weekdays

To quickly create a list of dates excluding Saturdays and Sundays, execute the following steps.

1. For example, enter the date 12/17/2025 into cell A1.

Date

2. Select cell A1 and drag the fill handle down. AutoFill automatically fills in the days.

Fill Days

3. Instead of filling in days, use the AutoFill options to fill in weekdays (ignoring weekend days).

Fill Weekdays

Note: use WORKDAY.INTL to exclude different weekend days and holidays. Read on.

WORKDAY.INTL

Use WORKDAY.INTL instead of WORKDAY to specify different weekend days. Let’s create a list of dates excluding Mondays, Sundays and holidays.

1. Enter the date 12/17/2025 into cell A1 and specify a list of holidays (E1:E2).

WORKDAY.INTL arguments

2. Enter the WORKDAY.INTL function shown below.

WORKDAY.INTL

Explanation: use a string of 0’s and 1’s (third argument) to specify which days are weekend days. The first 1 tells Excel that Monday is a weekend day. The second 0 tells Excel that Tuesday is not a weekend day, etc. In this example, Monday and Sunday are weekend days.

3. Select cell A2 and drag the fill handle down.

Drag Formula Down

Explanation: the calendar below helps you understand this formula.

Calendar

Conclusion: this formula automatically skips Mondays, Sundays and holidays. Pretty cool.

Highlight Weekdays

You can use conditional formatting in Excel to highlight dates that are weekdays (Monday, Tuesday, Wednesday, Thursday or Friday).

1. For example, select the range A1:A8.

Select Dates

2. On the Home tab, in the Styles group, click Conditional Formatting.

Click Conditional Formatting

3. Click New Rule.

Click New Rule

4. Select ‘Use a formula to determine which cells to format’.

5. Enter the formula =AND(WEEKDAY(A1)>1,WEEKDAY(A1)<7)

6. Select a formatting style and click OK.

Formula to Highlight Weekdays

Result. Excel highlights all weekdays.

Highlight Weekdays

Explanation: always write the formula for the upper-left cell in the selected range. Excel copies the formula to the other cells. Use the formula =OR(WEEKDAY(A1)=1,WEEKDAY(A1)=7) to highlight weekend dates.

Microsoft Excel logo on a green background

Do you have a date in your spreadsheet that you want to turn into the day of the week? If so, Microsoft Excel has multiple features and functions to help you do that. We’ll show you how to use them.

Ways to Find the Weekday From a Date in Excel

To find the day of the week from a date, you have basically three ways. The first method is to turn your date into the day of the week in a numerical form. In this method, Sunday is displayed as number 1, Monday is number 2, and so on. This is calculated with Excel’s WEEKDAY function.

The second method displays the actual name of the day of week, like Sunday, Monday, and so on. This method uses Excel’s TEXT function that converts your date to the day format.

The third method re-formats your actual dates and displays them as the names of the day of week, like Sunday, Monday, and so on. If you use this method, you do not need a separate column to display the days, as your existing date is overwritten.

Find the Day of the Week as a Number

To find the day of the week as a number, use Excel’s WEEKDAY function as follows. The count starts from Sunday, where it is numbered 1. However, you can make the function count from any chosen day (like Monday), as we’ll explain below.

To start, first, open your spreadsheet with Microsoft Excel. In the spreadsheet, make sure you have at least one date. Then select the cell in which you want to display the day of the week.

Select a cell in an Excel spreadsheet.

In the selected cell, type the following WEEKDAY function and press Enter. In this function, replace B2 with the cell where you have your date.

=WEEKDAY(B2)

Enter the WEEKDAY function.

If you’d like to use the date directly in the function, type the following WEEKDAY function with your date in it and press Enter. Keep double quotes around your date.

=WEEKDAY("24/5/2021")

Enter the WEEKDAY function with direct values.

And in the selected cell, you will see the day of the week for your date as a number.

The result of the WEEKDAY function.

To make the function count days so that Monday is number 1, modify the function as follows. The number 2 in the function argument tells it to start counting from Monday.

=WEEKDAY(B2,2)

Type the custom WEEKDAY function.

Here’s how your result now looks like:

The result of the custom WEEKDAY function.

To copy the function to other cells, drag downwards from the bottom-right corner of the cell where you typed the function.

Copy the WEEKDAY function.

RELATED: How to Sort by Date in Microsoft Excel

To display a date’s day of the week as the day name, like Monday, use Excel’s TEXT function. In this function, you tell Excel to format your date in the day format. You can choose the shortened day name (like Mon) or full day name (like Monday).

Start by opening your spreadsheet with Microsoft Excel. Then select the cell in which you want to display the day of week.

In the selected cell, type the following TEXT function and press Enter. In this function, replace B2 with the cell where your date is.

=TEXT(B2,"dddd")

Enter the TEXT function.

The selected cell will display the day of the week. If you’d prefer a shortened day name, like “Mon” for Monday, remove one d from the function argument as follows:

=TEXT(B2,"ddd")

Type the custom TEXT function.

And you now have the shortened day name in your selected cell.

The result of the custom TEXT function.

Depending on how you like to style your sheets, you may want to format your dates using periods in Excel.

Convert Dates to Days of the Week

To convert your dates to days of weeks without using a separate column, use Excel’s custom number format. This displays the day of week by its full or shortened name.

To do so, first, open your spreadsheet with Microsoft Excel. Then select the cells containing dates.

Select the date cells.

In Excel’s ribbon at the top, click the “Home” tab.

In the “Home” tab, from the “Number” section, select “Number Format” (an arrow icon).

Select "Number Format" in the "Home" tab.

A “Format Cells” window will open. On this window, from the “Category” list on the left, select “Custom.”

Select "Custom" on the "Format Cells" window.

On the right, click the “Type” box and enter “dddd” (without quotes) for full day names (like Monday) or “ddd” for shortened day names (like Mon). Then, at the bottom, click “OK.”

Specify the date format.

Excel will turn your selected dates into days of the week.

Dates turned into days of week.

And that’s how you know what day it was on a specific date in Microsoft Excel. Very useful!


Did you know you can use Excel to calculate someone’s age, too? It’s equally easy to do that.

RELATED: How to Calculate Age in Microsoft Excel

READ NEXT

  • › 13 Microsoft Excel Date and Time Functions You Should Know
  • › How to Get the Month or Year From a Date in Microsoft Excel
  • › How to Install Unsupported Versions of macOS on Your Mac
  • › This 64 GB Flash Drive From Samsung Is Just $8 Right Now
  • › Liquid Metal vs. Thermal Paste: Is Liquid Metal Better?
  • › Microsoft Outlook Is Adding a Splash of Personalization
  • › Why Your Phone Charging Cable Needs a USB Condom
  • › The Best Steam Deck Docks of 2023

Like this post? Please share to your friends:
  • Which aspects has the word
  • Which are typical signal word words for the simple present
  • Where the word dollar come from
  • Where the word dollar came from перевод текста
  • Where the word dollar came from ответы на тест