How to get the weekday name from a date
✓ Verified in LibreOffice 25.8.7.3 ✓ Verified in Google Sheets (2026-08-30)Turn a date into its day-of-week name, like "Monday".
The formula
| App | Formula | Notes |
|---|---|---|
| Excel (desktop) | =TEXT(A2,"dddd") | "ddd" gives the short form (Mon). |
| Google Sheets | =TEXT(A2,"dddd") | Identical. |
| LibreOffice Calc | =TEXT(A2,"DDDD") | Case-insensitive; "dddd" also works. |
How it works
TEXT with the "dddd" format code renders a date as its full weekday name; "ddd" gives the three-letter abbreviation. July 20, 2026 falls on a Monday. If you need the weekday as a number instead (for sorting or logic), use WEEKDAY(A2) in all three apps.
Verified, not just documented
We ran =TEXT(DATE(2026,7,20),"DDDD") in LibreOffice 25.8.7.3 (headless, with forced recalculation) and it returned Monday — exactly the expected result. We then ran the same formulas in Google Sheets, executed 2026-08-30: a formula-only workbook goes into Google Drive, which converts it to a Sheet and recalculates every formula with Google’s own engine, and comes back out as .xlsx carrying the values Google computed. It returned Monday for the worked example, the same value LibreOffice produced. Both engines’ numbers on this page are executed results. The Excel formula follows Microsoft’s official documented syntax — we do not run desktop Excel.
Functions used
TEXT — see full Excel, Google Sheets & LibreOffice compatibility for each.
Related recipes
- How to abbreviate large numbers as K and M
- How to add leading zeros to a number
- How to concatenate a date with text (without getting a number)
- How to convert 12-hour text times to 24-hour
- How to convert a date to text