Why Excel TEXT Function Returns the Same Month for 1 and 2
Question details
The user needs to understand why using the TEXT function with numeric values 1 and 2 evaluates to the exact same month.

- 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.
Understand that spreadsheet software stores dates as sequential serial numbers starting from January 1, 1900, which affects how numeric values are formatted.
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.
Click on the cell where you want the formatted month name to appear.
Instead of referencing the number directly, construct a valid date using =TEXT(DATE(2024, A1, 1), "mmm") where A1 contains your month number.
Hit Enter on your keyboard. The cell will now correctly display the month corresponding to the number in cell A1.

Use the Multiplier Workaround
Multiply the month number by 29 to generate a serial number that accurately lands in the correct corresponding month.
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. Open WPS Spreadsheet: Launch WPS Office on your computer and create a new Spreadsheet document.
- 2. Enter your month numbers: Type your numeric month values (such as 1 through 12) in a specific column.
- 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.

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.




