#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default 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.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default 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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Function or formula to convert "text" month to number of month? Steve Vincent Excel Discussion (Misc queries) 5 May 15th 07 01:11 AM
function to fill all days of month to end of month Monique Excel Worksheet Functions 11 May 1st 06 07:39 PM
function to fill all days of month to end of month YaHootie Excel Worksheet Functions 10 May 1st 06 06:01 AM
When using MONTH function on Blank Cell!! Returns Month=Jan! mahou Excel Discussion (Misc queries) 6 January 9th 06 02:46 AM
=Month function in Excel gives incorrect month jbmx New Users to Excel 1 September 14th 05 07:58 PM


All times are GMT +1. The time now is 08:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"