How to Convert Numeric Weekday Values to Day Names in Word
Question details
The user needs a way to automatically display full weekday names when entering numerical values (1 through 7) or date fields within a text document.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Creating or modifying a document where numeric values representing days of the week need to be displayed as formatted text names.
- Observed behavior
- Word does not automatically convert standalone numbers 1 through 7 into weekday names as Excel does, requiring manual field codes or macros to achieve the correct formatting.
Determine whether the value you want to format is an actual date value (like MM/DD/YYYY) or a standalone number (1 through 7), as they require different field code solutions.
Use a Date Field Switch for Actual Dates
If your document field contains a complete date format, you can use a specific field switch to display only the day of the week.
This method is the easiest and most reliable if your starting value is a recognized date rather than a solitary number. It utilizes Word's built-in date formatting switches.
Locate and click on the date field in your Word document that you want to convert.
Right-click the field and select 'Edit Field', or press Shift+F9 on your keyboard to reveal the underlying field code.
Add the switch \@ "dddd" to the end of your field code. For example, it should look something like { DATE \@ "dddd" }.
Press F9 to update the field. The full weekday name (e.g., Monday) will now be displayed.

Create a Nested IF Field to Map Standalone Numbers
If you only have a standalone number (1 through 7), use a nested IF field code to map each number to its corresponding weekday name.
Use a VBA Macro for Manual Conversion
For users who frequently type numbers 1 through 7 and need them converted instantly, a VBA macro can be assigned to trigger the conversion.
Convert Weekday Values Effortlessly in WPS Writer
WPS Office Writer fully supports standard field codes, allowing you to easily format dates and map numerical values to weekday names using the exact same methods, without needing to switch applications.
- 1. Open your document: Launch WPS Writer and open the document containing the date or numeric values.
- 2. Insert a field code: Press Ctrl+F9 to create a new field code bracket.
- 3. Enter the formatting switch: Enter the \@ "dddd" switch for dates, or type your nested IF formula to define your weekday formatting.
- 4. Update the field: Right-click the field and select 'Update Field' or press F9 to reveal the formatted day name.

Frequently Asked Questions
Can I convert numbers to abbreviated day names (e.g., Mon, Tue)?
Yes. If using a date field switch, simply use \@ "ddd" instead of \@ "dddd". If you are using an IF field, you can manually change the output text strings in the formula to abbreviated names.
Why are my field codes showing as raw text instead of the actual day name?
You likely have the field codes toggled to display as text. Press Alt+F9 on your keyboard to toggle between viewing the raw field codes and the final generated results.
Is there an Excel-like TEXT function in Word for this conversion?
No, Word does not have a built-in TEXT function to automatically convert standalone numbers to weekdays. You must rely on date formatting switches, nested IF fields, or VBA macros.
Can I set Sunday instead of Monday as the first day of the week?
Yes, when creating a nested IF field mapping, you have full control over the output. You can manually define "1" as "Sunday" instead of "Monday" based on your regional or personal preference.




