Function Problems

Why Excel TEXT Function Returns the Same Month for 1 and 2

Rana GarciaRana Garcia Nov 2, 2026 870 views

Question details

The user needs to understand why using the TEXT function with numeric values 1 and 2 evaluates to the exact same month.

Why the Excel TEXT Function Returns the Same Month for 1 and 2
Product
Microsoft Excel / WPS Spreadsheet
Device & OS
not provided
Scenario
Formatting numeric values as month names or month numbers using the TEXT formula.
Observed behavior
Using =TEXT(1, "mmm") and =TEXT(2, "mmm") both return 'January', and using the 'm' format returns '1' for both, instead of outputting distinct months.
Before you start

Understand that spreadsheet software stores dates as sequential serial numbers starting from January 1, 1900, which affects how numeric values are formatted.

Solution 1Recommended

Convert Month Numbers to Valid Dates

Use the DATE function to convert standalone month numbers into valid dates before applying the TEXT format.

When you apply a date format like "mmm" in the TEXT function, the software treats the input number as a date serial number. The number 1 represents January 1, 1900, and 2 represents January 2, 1900. Since both dates fall in the month of January, the TEXT function correctly, though unexpectedly, returns "January" for both.

1
Select the target cell

Click on the cell where you want the formatted month name to appear.

2
Enter the DATE formula

Instead of referencing the number directly, construct a valid date using =TEXT(DATE(2024, A1, 1), "mmm") where A1 contains your month number.

3
Press Enter to apply

Hit Enter on your keyboard. The cell will now correctly display the month corresponding to the number in cell A1.

Convert Month Numbers to Valid Dates
Compatibility Note: This date serial behavior is a standard feature designed for legacy compatibility, including intentional compatibility with early Lotus 1-2-3 systems.
Advanced Spreadsheet Solution

Easily Manage Dates and Formulas with WPS Spreadsheet

WPS Spreadsheet handles complex formulas, date calculations, and data formatting with perfect precision. It is fully compatible with Microsoft Excel functions, ensuring your date and time serial numbers behave exactly as expected.

  1. 1. Open WPS Spreadsheet: Launch WPS Office on your computer and create a new Spreadsheet document.
  2. 2. Enter your month numbers: Type your numeric month values (such as 1 through 12) in a specific column.
  3. 3. Apply the conversion formula: Use the formula =TEXT(DATE(2024, A1, 1), "mmmm") to accurately display the full month names without serial number conflicts.
100% compatible with Microsoft Excel formulas and date serial formatsBuilt-in intuitive date pickers and formatting toolsFree and lightweight alternative for everyday spreadsheet tasks
microsoft office alternative - wps office

Frequently Asked Questions

How do spreadsheets store dates internally?

Spreadsheets store dates as sequential serial numbers. By default, the number 1 represents January 1, 1900, 2 represents January 2, 1900, and so on. This is why small numbers format as January.

Can I use the CHOOSE function instead of TEXT to get the month name?

Yes, you can avoid date formats entirely by using the CHOOSE function. For example, =CHOOSE(A1, "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec") maps numbers 1-12 directly to month texts.

Why doesn't applying a custom cell format change the actual number?

Cell formatting only changes how a value is displayed on the screen. The underlying value remains a sequential serial number, which is why formulas referencing that cell evaluate the original number, not the formatted text.