search
HomeTopicsexcelDays of week formula in Excel to get day names or numbers from date

In this article, we'll explore different methods to extract days of the week from calendar date in Excel such as formulas and custom number formats.

When you're using Excel to manage project deadlines, schedule appointments, or analyze data trends, it's often handy to know the day names for specific dates. Excel has a variety of tools to help you figure this out. In this article, we'll show you some straightforward ways to get the day of the week from a date, whether you want it as word or number.

Get day of week from date using TEXT formula

One of the simplest ways to find the day names from a date in Excel is by using the TEXT function. Here’s how:

  1. Let's assume that the original date is in cell A3.
  2. In another cell (let's say B3), enter one of these formulas:

    To return the full name of the day such as "Monday" or "Tuesday", the formula is:

    =TEXT(A3, "dddd")

    To get a shorter version of the day names like "Mon" or "Tue", use this day of week code:

    =TEXT(A3, "ddd")

  3. Press Enter, and cell B3 will display the day name corresponding to the date in cell A3.

Days of week formula in Excel to get day names or numbers from date

It's important to note that the TEXT function always gives you the result as text, regardless of the original cell's format. If you plan to use this output for further calculations, consider using a custom format instead of a formula.

Find day names with WEEKDAY formula

Another simple formula for days of the week in Excel is WEEKDAY.

By default, the WEEKDAY function returns a number between 1 and 7. In this system, Sunday is considered as 1, Monday as 2, and so on, but you can change this by specifying a different return_type argument.

Convert day of week to number

If your goal is to get the day of the week number, then the WEEKDAY function in its basic form is all you need:

=WEEKDAY(A1)

If cell A1 contains a date like "18-Sep-2023" (Monday), the formula will return 2; or 3 if A1 contains "19-Sep-2023" (Tuesday).

Days of week formula in Excel to get day names or numbers from date

Convert calendar date to day of week

If you prefer having the day names, not numbers, you can combine the WEEKDAY function with the TEXT function.

For example, to convert a calendar date in cell A1 to the day of week, use one of these formulas:

=TEXT(WEEKDAY(A1), "dddd")

Or

=TEXT(WEEKDAY(A1), "ddd")

The difference is that the first formula returns the full name of the day while the second formula displays a shorter version of the name.

In this formula, the WEEKDAY function should be used with just one required argument. The optional return_type argument should not be specified, even if your week starts on a day other than Sunday.

Days of week formula in Excel to get day names or numbers from date

Note. This formula is included merely for demonstration purposes. A TEXT formula without WEEKDAY described above is simpler and returns exactly the same results.

Return day name in any format using CHOOSE formula

If you want to create your custom labels or notations for the day names, you can do this by using WEEKDAY in combination with the CHOOSE function. Here's how it works:

  • CHOOSE returns a value from a predefined list based on an index number.
  • WEEKDAY calculates the index number corresponding to the day of the week for a given date.

In other words, this formula maps the numeric output of the WEEKDAY function to the corresponding name that you've hardcoded into the CHOOSE function.

Let's assume that your date is in cell A3, and you want to show the day names as 2-letter abbreviations such as "Su" for Sunday, "Mo" for Monday, etc. The following formula works a treat:

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

Days of week formula in Excel to get day names or numbers from date

Display day of week from date using custom format

Another way to show the day names in Excel is by applying a custom number format. This approach allows you to keep the original date value in the cell while visually displaying the day of the week. Here's how to do it:

  1. Select the cell(s) containing the date you want to format.
  2. Right-click the selected cells to bring up a context menu, then choose Format Cells.
  3. In the Format Cells dialog box, navigate to the Number tab and select Custom in the Category list.
  4. In the Type field, enter the desired code for the day of week:
    • dddd – the code for the full day names (e.g. Sunday).
    • ddd – the code for abbreviated day names (e.g. Sun).
  5. Click OK to apply the custom format.

Days of week formula in Excel to get day names or numbers from date

Unlike Excel formulas, this method does not change the underlying values of the cells, but only changes how they appear in cells.

In the screenshot below, you can see three columns with the same dates. Column A displays the dates in the default date format, column B shows full day names (“dddd” format), and column C shows abbreviated names (“ddd” format). If you check the formula bar, you'll notice that all three columns retain the original date values. This means you can use these dates in any calculations as fully functional Excel dates while providing a desired visual representation of the day of the week.

Days of week formula in Excel to get day names or numbers from date

These are some of the ways to get the day of week from date in Excel. You can choose any method that suits your needs and preferences. Thanks for reading, and we'll be back with more helpful tips soon!

Practice workbook for download

Excel formula for day of week - examples (.xlsx file)

The above is the detailed content of Days of week formula in Excel to get day names or numbers from date. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
MEDIAN formula in Excel - practical examplesMEDIAN formula in Excel - practical examplesApr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Google Spreadsheet COUNTIF function with formula examplesGoogle Spreadsheet COUNTIF function with formula examplesApr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

Excel shared workbook: How to share Excel file for multiple usersExcel shared workbook: How to share Excel file for multiple usersApr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

How to convert Excel to JPG - save .xls or .xlsx as image fileHow to convert Excel to JPG - save .xls or .xlsx as image fileApr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Excel names and named ranges: how to define and use in formulasExcel names and named ranges: how to define and use in formulasApr 11, 2025 am 11:13 AM

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

Standard deviation Excel: functions and formula examplesStandard deviation Excel: functions and formula examplesApr 11, 2025 am 11:01 AM

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

Square root in Excel: SQRT function and other waysSquare root in Excel: SQRT function and other waysApr 11, 2025 am 10:34 AM

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Google Sheets basics: Learn how to work with Google SpreadsheetsGoogle Sheets basics: Learn how to work with Google SpreadsheetsApr 11, 2025 am 10:23 AM

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools