Formatting Issues

How to Fix EOMONTH Showing a Number Instead of a Date in Excel

Emma BrownEmma Brown Nov 10, 2026 868 views

Question details

The user needs to convert the numerical output of the EOMONTH function into a readable date format.

How to Fix EOMONTH Showing a Number Instead of a Date in Excel
Product
Excel
Device & OS
not provided
Scenario
Using the EOMONTH function to calculate the last day of a month.
Observed behavior
The function returns a date serial number instead of a standard date format because the result cell is formatted as a number or general text.
Before you start

Ensure that your EOMONTH formula is entered correctly and references a cell containing a valid starting date.

Solution 1Recommended

Change Cell Format to Date

Apply date formatting to the result cell to convert the serial number into a readable date.

Spreadsheet applications store dates as sequential serial numbers so they can be used in mathematical calculations. The EOMONTH function outputs this raw serial value by default if the destination cell is formatted as 'General' or 'Number'.

1
Select the result cell

Click on the cell containing your EOMONTH formula (for example, =EOMONTH(J4,1)).

2
Open the Format Cells dialog

Press the keyboard shortcut Ctrl+1. Alternatively, right-click the selected cell and choose 'Format Cells' from the context menu.

3
Choose the Date category

In the Format Cells window, navigate to the Number tab and select 'Date' from the Category list on the left side.

4
Select your desired format

Pick your preferred date layout from the Type list on the right side and click 'OK' to apply the formatting.

Change Cell Format to Date
Quick Keyboard Shortcut: You can quickly apply the default short date format by selecting the cell and pressing Ctrl+Shift+# on your keyboard.
Powerful Spreadsheet Tool

Format Dates and Formulas Easily in WPS Spreadsheet

WPS Spreadsheet offers an intuitive interface to handle date functions like EOMONTH, easily formatting serial numbers into readable dates with just a few clicks.

  1. 1. Enter the formula: Type =EOMONTH(start_date, months) into your desired cell in WPS Spreadsheet.
  2. 2. Select the result: Click on the cell that displays the calculated serial number.
  3. 3. Apply Date format: Go to the Home tab, click the Number Format dropdown box, and select 'Short Date' or 'Long Date'.
Fully compatible with Microsoft Excel formulas and date formats (.xlsx).One-click date formatting directly from the Home ribbon.Free, lightweight, and fast spreadsheet processing.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show numbers instead of dates for other formulas?

Excel stores all dates as serial numbers starting from January 1, 1900. Functions like TODAY, DATE, or EOMONTH calculate these underlying serial numbers. If the destination cell is formatted as 'General' or 'Number', it displays the raw serial number rather than the formatted date.

How do I fix the EOMONTH result if it shows a #NUM! error?

A #NUM! error in EOMONTH usually occurs if the start date is invalid or not recognized as a date. Ensure your starting date is a valid Excel date and not formatted as regular text.

Can I format the EOMONTH result directly within the formula?

Yes, you can use the TEXT function to format it directly without changing the cell formatting. For example, using =TEXT(EOMONTH(A1, 1), "mm/dd/yyyy") will output the result as a formatted text string.