Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Vinaya
 
Posts: n/a
Default Month always displays as Jan

Hi,

When I put the formula =month(A1) to get the month for any date, it
shows me the right month,numerically. However, when I customise it to
"mmm" format , it always shows as Jan.

Why does this happen?

Regards,
Vinaya

  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

That's the way Excel designed it. From the Help file for
MONTH:

"Returns the month of a date represented by a serial
number. The month is given as an integer, ranging from 1
(January) to 12 (December)."

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi,

When I put the formula =month(A1) to get the month for

any date, it
shows me the right month,numerically. However, when I

customise it to
"mmm" format , it always shows as Jan.

Why does this happen?

Regards,
Vinaya

.

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Because of the way that Excel stores dates, as a number since 1st Jan 1900,
that derived month number can also be represented as a date. As the month
could only be 1-12, that would range from 1st Jan 1900 to 12th Jan 1900, so
if you format that as 'mmm', in every case you get Jan.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Vinaya" wrote in message
...
Hi,

When I put the formula =month(A1) to get the month for any date, it
shows me the right month,numerically. However, when I customise it to
"mmm" format , it always shows as Jan.

Why does this happen?

Regards,
Vinaya



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
Add one month to the previuos month heater Excel Discussion (Misc queries) 5 February 10th 05 12:33 AM
Month Year Date Format Jamie Excel Worksheet Functions 2 February 7th 05 06:43 PM
Accounting Month vs. Calendar Month JN Excel Worksheet Functions 4 January 31st 05 08:09 PM
How to extract month number from month name PM Excel Discussion (Misc queries) 2 January 19th 05 03:07 PM
How can I format a cell so date field only displays the Month? tk_2u Excel Discussion (Misc queries) 3 December 4th 04 12:54 AM


All times are GMT +1. The time now is 11:28 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"