ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Month function (https://www.excelbanter.com/excel-discussion-misc-queries/237542-month-function.html)

ispy1009

Month function
 
In using the month function I have encountered the following problem with
formatting. If I format the cells general or mm, I get the corresponding
digit to reflect the correct month. However, If I use "mmm" or "mmmm", I get
Jan or January no matter what month. How can I format this column using mmm
or mmmm and get the correct result? I am using Office 2003. I would like to
have the month spelled out instead of just the digit(s) that reflect the
month.

Jacob Skaria

Month function
 
I assume you have a month numeric in a cell which you are trying to display
as month text. Try

=DATEVALUE("2009-" & A1 & "-1")
(and format it to "mmm")

If this post helps click Yes
---------------
Jacob Skaria


"ispy1009" wrote:

In using the month function I have encountered the following problem with
formatting. If I format the cells general or mm, I get the corresponding
digit to reflect the correct month. However, If I use "mmm" or "mmmm", I get
Jan or January no matter what month. How can I format this column using mmm
or mmmm and get the correct result? I am using Office 2003. I would like to
have the month spelled out instead of just the digit(s) that reflect the
month.


Gary''s Student

Month function
 
If a cell has a date in it, then mm will display the month number and mmm
will display the month as text.

If a cell has a simple number like 1, 2, 3,......., then the formula:
=DATE(2009,A1,1) will also display the month as text if formatted as mmm.

--
Gary''s Student - gsnu200859


"ispy1009" wrote:

In using the month function I have encountered the following problem with
formatting. If I format the cells general or mm, I get the corresponding
digit to reflect the correct month. However, If I use "mmm" or "mmmm", I get
Jan or January no matter what month. How can I format this column using mmm
or mmmm and get the correct result? I am using Office 2003. I would like to
have the month spelled out instead of just the digit(s) that reflect the
month.


David Biddulph[_2_]

Month function
 
The MONTH function returns a number from 1 to 12 (see Excel help for the
MONTH function).
If you format a cell containing a number from 1 to 12 as mmm or mmmm it
will, of course, show as January, as the dates represented by numbers 1 to
12 are 1 Jan 1900 to 12 Jan 1900. If you want to format as mmm or mmmm, do
that to the date you started with, not to the output of the MONTH function.
--
David Biddulph

"ispy1009" wrote in message
...
In using the month function I have encountered the following problem with
formatting. If I format the cells general or mm, I get the corresponding
digit to reflect the correct month. However, If I use "mmm" or "mmmm", I
get
Jan or January no matter what month. How can I format this column using
mmm
or mmmm and get the correct result? I am using Office 2003. I would like
to
have the month spelled out instead of just the digit(s) that reflect the
month.





All times are GMT +1. The time now is 05:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com