Victor Delta said:
The cell containing the formula is formatted for dates,
If you change it to integer formatting, it will show 1,
and mmm or mmmm formatting will show Jan or January
respectively - which I guess is what you want?
This is only half right.
The MONTH function returns the month number as an integer. Yes, it
displayed as 1/1/1900 because the cell was formatted as Date (or some
similar format). But generally, it would not display the month name with
when formatted as mmm or mmmm. It works with January only by coincidence.
Try the date Feb 13, 2008 (month 2). It will also display Jan or January.
If all you want is to __display__ the month name or even the month number,
if the original date is in A1, simply put =A1 into B1 (for example) and use
the Custom format m, mmm or mmmm.
But keep in mind that B1 still contains the entire date; for example, the
number 39481 for the date Feb 13, 2008.
Use the MONTH function when you truly want a month number between 1 and 12.