To return the weekday from a date in Excel, use the TEXT function with a custom format like "dddd" for the full name or "ddd" for the abbreviated name, or use the WEEKDAY function to get a number representing the day of the week. This allows you to extract and display the day of the week (e.g., Monday, Tuesday) from any valid date in your worksheet.
What You'll Need
- Microsoft Excel (any recent version: Excel for Microsoft 365, Excel 2021, 2019, 2016, or earlier)
- A worksheet containing valid date entries (formatted as dates, not text)
- Basic familiarity with entering formulas in cells
Step-by-Step
- Select an empty cell where you want the weekday to appear (e.g., B2 if your date is in A2).
- Type the formula:
=TEXT(A2,"dddd")to get the full weekday name (e.g., "Monday"), or=TEXT(A2,"ddd")for the abbreviated version (e.g., "Mon"). - Press Enter. The cell will now display the weekday corresponding to the date in A2.
- To apply this to multiple dates, click the fill handle (small square at the bottom-right of the cell) and drag it down or across to copy the formula to other cells.
- Alternatively, use
=WEEKDAY(A2)to return a number (1=Sunday, 2=Monday, ..., 7=Saturday by default). - If you want the week to start on Monday (so Monday=1, Sunday=7), use
=WEEKDAY(A2,2). - To combine the WEEKDAY result with text (e.g., "Day 3"), use
="Day " & WEEKDAY(A2,2). - Ensure your source cells contain real Excel dates (not text that looks like dates). To check, select a date cell and see if the Number Format in the Home tab shows "Date" or a similar category.
- If the date is stored as text, convert it first using DATEVALUE:
=TEXT(DATEVALUE(A2),"dddd").
Common Mistakes
- Using TEXT with incorrect format codes: "DDDD" or "Day" will not work; format codes are case-sensitive and must be exactly "dddd" or "ddd".
- Assuming WEEKDAY returns 1 for Monday by default—it returns 1 for Sunday unless you change the second argument.
- Applying the formula to cells containing text that looks like a date (e.g., "2024-05-20" as text) without converting it first, leading to errors or incorrect results.
- Formatting the result cell as a date, which can cause the weekday name to display as a date serial number instead of text.
- Forgetting to lock cell references (e.g., using A2 instead of $A$2) when copying formulas across rows or columns, leading to incorrect references.
Tips
- Use "dddd" for full weekday names in reports or dashboards where readability matters.
- Use "ddd" when space is limited, such as in column headers or compact tables.
- Combine WEEKDAY with CHOOSE to return custom weekday labels:
=CHOOSE(WEEKDAY(A2,2),"Mon","Tue","Wed","Thu","Fri","Sat","Sun"). - Use conditional formatting to highlight weekends: create a rule using
=WEEKDAY(A2,2)>5to flag Saturdays and Sundays. - If working with international date formats, ensure your system locale is set correctly, or use DATE with YEAR, MONTH, DAY functions to avoid ambiguity.
- To remove formulas and keep only the weekday values, copy the cells, then use Paste Special > Values.
Troubleshooting
- Result shows a number like 45678 instead of a weekday: This means the cell is formatted as a date or number. Change the cell format to "General" or "Text" via Home > Number Format.
- Formula returns #VALUE!: The referenced cell likely contains text that Excel doesn’t recognize as a date. Use =DATEVALUE() to convert it, or re-enter the date using Excel’s date format.
- Wrong weekday is returned (e.g., Monday shows as Friday): Check the WEEKDAY function’s second argument. The default (1) starts weeks on Sunday. Use 2 for Monday-start weeks.
- Formula doesn’t copy correctly when dragged: Ensure you’re using relative references (like A2) if you want them to change, or absolute ($A$2) if you want them fixed. Mixed references (like $A2 or A$2) can also be useful.
- Weekday names appear in another language: Excel’s TEXT function uses the system language for day names. To force English, adjust your Excel language settings or use a lookup table with WEEKDAY and CHOOSE.
Frequently Asked Questions
Can I get the weekday without using a formula?
Yes, you can format the date cell directly to show the weekday. Right-click the cell > Format Cells > Number tab > Custom, then type "dddd" or "ddd" in the Type field. This displays the weekday but keeps the underlying value as a date.
How do I return the weekday as a number where Monday is 1?
Use =WEEKDAY(date,2). This sets the week to start on Monday (Monday=1, Tuesday=2, ..., Sunday=7).
Why does TEXT(A2,"dddd") return a #NAME? error?
This usually means there’s a typo in the format code. Make sure you’re using straight quotes (" ") and not curly or smart quotes, and that the code is exactly "dddd" (all lowercase).
Can I use this to calculate weekends or weekdays for payroll?
Yes. Use WEEKDAY to identify weekends: =IF(WEEKDAY(A2,2)>5,"Weekend","Weekday"). Then sum or count based on the result using SUMIFS or COUNTIFS.
What if my dates are in a different format, like YYYY-MM-DD?
As long as Excel recognizes it as a date (aligns to the right in the cell, not left), the TEXT and WEEKDAY functions will work. If it’s aligned left, it’s text—use DATEVALUE to convert.
Is there a way to get the weekday name in another language?
The TEXT function returns weekday names based on your Excel language settings. To get names in a specific language regardless of settings, use a lookup table with WEEKDAY and CHOOSE, or use Power Query to transform the data with locale-specific formatting.