Formula Errors

Fix Excel TEXT Function Not Showing Correct Weekday

Anum MushtaqAnum Mushtaq Oct 26, 2026 869 views

Question details

The user needs to correct the output of the TEXT function when it fails to return the expected weekday name from a date value.

Fix Excel TEXT Function Not Showing Correct Weekday
Product
Excel
Device & OS
not provided
Scenario
Using the TEXT function to extract and display the day of the week from a given date cell.
Observed behavior
The TEXT formula returns an unexpected or incorrect weekday name because the workbook's formula syntax, date formats, or regional settings clash with the operating system configuration.
Before you start

Ensure that the source cell containing the date is formatted as a valid date value rather than plain text, as the TEXT function cannot accurately extract weekdays from non-date text strings.

Solution 1Recommended

Apply a Custom Date Format Directly to the Cell

Applying a date format directly to the cell avoids locale dependency issues caused by operating system regional settings.

The TEXT function relies on locale-sensitive formatting codes (like 'dddd' for English). If the spreadsheet is opened on a computer with a different language or regional setting, the formula might break. Formatting the cell directly ensures greater stability across different environments.

1
Select the target cell

Highlight the cell or range of cells containing the date you want to display as a weekday.

2
Open Format Cells dialog

Right-click the selected cells and choose 'Format Cells', or press 'Ctrl + 1' on your keyboard.

3
Apply custom formatting

Navigate to the 'Number' tab, select 'Custom' from the category list, and type 'dddd' (for the full weekday name) or 'ddd' (for the abbreviated name) into the Type field. Click 'OK' to apply.

Apply a Custom Date Format Directly to the Cell
Data Integrity Preserved: Unlike the TEXT function, applying a custom cell format changes only how the date looks, keeping the underlying numerical date value intact for future calculations.
Seamless Data Processing

Format Dates Accurately and Effortlessly with WPS Spreadsheet

WPS Office Spreadsheet provides robust date functions and highly compatible formatting tools. Whether you are using complex TEXT formulas or applying custom formatting, WPS Spreadsheet ensures your data displays correctly across different regions without syntax errors.

  1. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open the workbook containing your date values.
  2. 2. Select your date cells: Highlight the cells where you want the weekday to be extracted or displayed.
  3. 3. Access cell formatting: Right-click and select 'Format Cells' from the context menu.
  4. 4. Enter the custom weekday code: Under the 'Custom' category, input 'dddd' to instantly convert the visual display to the correct weekday name.
Full compatibility with Microsoft Excel date and time functionsIntuitive Format Cells dialog for quick custom date adjustmentsLightweight architecture for fast calculation of large datasetsCross-platform support ensures consistent formatting on any OS
microsoft office alternative - wps office

Frequently Asked Questions

Why does my TEXT formula return a #VALUE! error instead of the weekday?

This usually happens if the referenced cell contains a text string that Excel does not recognize as a valid date. Ensure the source data is a proper serial date number.

How can I get the weekday as a number instead of text?

If you need a numerical representation of the weekday (e.g., 1 for Sunday, 2 for Monday), use the WEEKDAY function instead: =WEEKDAY(A1).

Does the TEXT function change the underlying data type?

Yes, the TEXT function converts a numeric date value into a literal text string. This means you cannot perform further date-based mathematical calculations on the resulting output.

How do I extract just the three-letter abbreviation of the weekday?

You can extract the abbreviated weekday by using three 'd's in your format string. For example, use the formula =TEXT(A1, "ddd").