Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello
Cell A1 7/1/2007 Cell A2 =month(a1) and returns 7 if I format as "MM" it returns 01. How do I get this to return 07. Thanks! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=TEXT(A1,"mm")
"Sandy" wrote: Hello Cell A1 7/1/2007 Cell A2 =month(a1) and returns 7 if I format as "MM" it returns 01. How do I get this to return 07. Thanks! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Sandy,
I used to run in to this as well. Because A2 has a formula to return month from A1, your value is 7. Since you then are formatting as month, it is in essence taking 7 as a date, which is 7 January 1900. That is why you get 01 (if you had set format as "MMM" it would say "Jan"). To fix this in cell A2, simply make A2=A1, and then set format as "MMM". You will then get "Jul" in that cell. Cheers, Jamison |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
conditional formatting for cell date to equal today's date | Excel Worksheet Functions | |||
Date Formatting when using & | Excel Discussion (Misc queries) | |||
Date Formatting | Excel Discussion (Misc queries) | |||
XML date formatting | Excel Worksheet Functions | |||
date formatting | Excel Discussion (Misc queries) |