Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2002: Why I could not sort month/year text now ? | Excel Discussion (Misc queries) | |||
count month when date is in day/month/year format | Excel Worksheet Functions | |||
Enter month and year as text | New Users to Excel | |||
Tell me which "season" (Month/Day through Month/Day) a date(Month/Day/Year) falls in (any year)??? | Excel Discussion (Misc queries) | |||
trying to get day/month/year froamt while user enters year only | New Users to Excel |