Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Displaying month or year as text

Using Excel 2007. I have a date of 15-Aug-09 in a cell but if I use the
function Text(Month(cell),"mmm") it shows "Jan". If I try with the Year
function I get "1905". Entering just Month(cell) gives me the correct answer
of "8". What is wrong please?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Displaying month or year as text

Hi,

Try

=TEXT(A1,"mmm")

Mike

"Monovian" wrote:

Using Excel 2007. I have a date of 15-Aug-09 in a cell but if I use the
function Text(Month(cell),"mmm") it shows "Jan". If I try with the Year
function I get "1905". Entering just Month(cell) gives me the correct answer
of "8". What is wrong please?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Displaying month or year as text

Thanks - why didn't I think of that?

"Mike H" wrote:

Hi,

Try

=TEXT(A1,"mmm")

Mike

"Monovian" wrote:

Using Excel 2007. I have a date of 15-Aug-09 in a cell but if I use the
function Text(Month(cell),"mmm") it shows "Jan". If I try with the Year
function I get "1905". Entering just Month(cell) gives me the correct answer
of "8". What is wrong please?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Displaying month or year as text

Hi,

Maybe brain blockage. You could have done it your way like this

=TEXT(MONTH($A$1)*29,"mmmm")

Mike

"Monovian" wrote:

Thanks - why didn't I think of that?

"Mike H" wrote:

Hi,

Try

=TEXT(A1,"mmm")

Mike

"Monovian" wrote:

Using Excel 2007. I have a date of 15-Aug-09 in a cell but if I use the
function Text(Month(cell),"mmm") it shows "Jan". If I try with the Year
function I get "1905". Entering just Month(cell) gives me the correct answer
of "8". What is wrong please?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Displaying month or year as text

On Sun, 13 Sep 2009 02:43:01 -0700, Monovian
wrote:

Using Excel 2007. I have a date of 15-Aug-09 in a cell but if I use the
function Text(Month(cell),"mmm") it shows "Jan". If I try with the Year
function I get "1905". Entering just Month(cell) gives me the correct answer
of "8". What is wrong please?


To explain what is wrong, you must understand the following:

Excel stores dates as serial numbers with 1 = Jan 1 1900

Month(cell) returns a number from 1-12 (the months of the year as numbered).

Text looks at its "value" argument and formats it according to the
"format_text" argument. In your case, value = 8. As a date, 8 = 8 Jan 1900;
formatted as "mmm" -- Jan.

If you want "mmm" to apply to 15-Aug-09, then you must use that as the value
argument.

i.e. =TEXT(cell, "mmm")
--ron


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Displaying month or year as text

On Sep 13, 10:43�am, Monovian
wrote:
Using Excel 2007. �I have a date of 15-Aug-09 in a cell but if I use the
function Text(Month(cell),"mmm") it shows "Jan". �If I try with the Year
function I get "1905". �Entering just Month(cell) gives me the correct answer
of "8". �What is wrong please?


Why not use the cell format to get the display you want from a date
value. Right click on the cell and select Format Cells Number. Then
enter mmm or mmmm in the Type entry box.

Alan Lloyd

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
Excel 2002: Why I could not sort month/year text now ? Mr. Low Excel Discussion (Misc queries) 1 May 2nd 09 09:01 PM
count month when date is in day/month/year format ccKennedy Excel Worksheet Functions 6 April 30th 09 03:32 AM
Enter month and year as text Orrie[_2_] New Users to Excel 6 February 16th 09 05:56 PM
Tell me which "season" (Month/Day through Month/Day) a date(Month/Day/Year) falls in (any year)??? misscrf Excel Discussion (Misc queries) 1 December 14th 07 02:59 PM
trying to get day/month/year froamt while user enters year only RADIOOZ New Users to Excel 3 June 7th 06 05:30 AM


All times are GMT +1. The time now is 11:08 PM.

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

About Us

"It's about Microsoft Excel"