logo
search
Formula Errors

How to Fix Excel MONTH Function #VALUE! Error for Dates

Kushani NimanthikaKushani Nimanthika Sep 25, 2026 868 views

Question details

The user needs to resolve a #VALUE! error that occurs when using the MONTH function on a date formatted as text.

How to Fix the Excel MONTH Function Returning #VALUE! for a Date
Product
Excel
Device & OS
not provided
Scenario
Extracting the month from a date using the MONTH function.
Observed behavior
The function returns a #VALUE! error because the date (e.g., 29/11/2024) is stored as text rather than a numeric date, and changing the cell formatting does not fix it.
Before you start

Before troubleshooting, verify if your dates are left-aligned in the cell by default, which is a strong visual indicator that the spreadsheet is treating them as text instead of numbers.

Solution 1Recommended

Convert Text Dates to Numeric Dates Using Text to Columns

Use the Text to Columns feature to force the spreadsheet to recognize text strings as actual numeric dates.

Applying a date format to a cell does not change the underlying data type from text to a number. The Text to Columns wizard rewrites the data so the system correctly identifies it as a date.

1
Select the problematic data

Highlight the column or cells containing the text dates that are causing the #VALUE! error.

2
Open Text to Columns

Navigate to the Data tab on the ribbon and click on the 'Text to Columns' button.

3
Navigate the wizard

Choose 'Delimited' in the first step and click 'Next' twice to reach step 3 of the wizard.

4
Set the date format

Under 'Column data format', select 'Date'. From the dropdown menu next to it, choose 'DMY' (Day-Month-Year) or the format matching your source text.

5
Finish the conversion

Click 'Finish' to apply the changes. The MONTH function should now correctly extract the month without returning an error.

Convert Text Dates to Numeric Dates Using Text to Columns
Verify with Formulas: You can type =ISTEXT(A1) before the process to confirm the cell is text (TRUE), and =ISNUMBER(A1) after the process to verify it has successfully converted to a numeric date (TRUE).
Easily Manage Date Formats

Fix Date Errors Instantly with WPS Spreadsheet

WPS Spreadsheet provides robust tools for handling complex data cleaning tasks. Its intuitive Text to Columns feature quickly resolves text-date issues, ensuring functions like MONTH work perfectly without manual formula rebuilding.

  1. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open the document containing the date errors.
  2. 2. Select the text dates: Highlight the column where the dates are incorrectly stored as text.
  3. 3. Use Text to Columns: Go to the 'Data' tab and click on 'Text to Columns'.
  4. 4. Convert to Date: Follow the wizard to step 3, select 'Date' (DMY), and click 'Finish' to resolve the #VALUE! errors.
Instantly resolve text vs. number discrepancies with intuitive formatting tools.Built-in Text to Columns wizard precisely parses DD/MM/YYYY and MM/DD/YYYY formats.Fully compatible with Microsoft Excel (.xlsx) formats and standard date functions.Free, lightweight, and fast alternative for everyday spreadsheet tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't changing the cell format to "Date" fix the #VALUE! error?

Applying a cell format only changes how a recognized number is visually displayed. If the underlying data is stored as a text string, the formatting engine ignores it. You must use tools like Text to Columns to rewrite the text string into a numeric date value.

How can I quickly check if a whole column contains text dates?

You can add a helper column next to your dates and enter the formula =ISTEXT(A1). Drag the fill handle down to test all cells. Cells returning TRUE are stored as text, while FALSE indicates a valid numeric entry.

Can I use a formula to fix the #VALUE! error without using Text to Columns?

Yes, you can use the DATEVALUE function to convert text strings into date serial numbers on the fly. For example, instead of =MONTH(A1), you can write =MONTH(DATEVALUE(A1)) to force the conversion within the formula itself.