![]() |
How to format the month of date
I want to format any user enterable date which is "mm/dd/yy" into month as
"mm" but as text. e.g. for 6/6/6 the variable should return "June" |
How to format the month of date
Jeni, with a helper column, assuming dates in Column A, in B1, insert
=Text(A1, "mmmm") and copy down. If you want to remove the helper column, copy Column B and Paste Special/Values over column A. HTH Greg Jeni wrote: I want to format any user enterable date which is "mm/dd/yy" into month as "mm" but as text. e.g. for 6/6/6 the variable should return "June" |
How to format the month of date
Jeni, or just use a custom format of mmmm.
Greg Jeni wrote: I want to format any user enterable date which is "mm/dd/yy" into month as "mm" but as text. e.g. for 6/6/6 the variable should return "June" |
How to format the month of date
dim myDate as date
dim myMonthStr as string 'something that gets mydate from the user. mymonthstr = format(mydate,"mmmm") If I understand correctly. Jeni wrote: I want to format any user enterable date which is "mm/dd/yy" into month as "mm" but as text. e.g. for 6/6/6 the variable should return "June" -- Dave Peterson |
How to format the month of date
Thanks Greg it worked
"GregR" wrote: Jeni, with a helper column, assuming dates in Column A, in B1, insert =Text(A1, "mmmm") and copy down. If you want to remove the helper column, copy Column B and Paste Special/Values over column A. HTH Greg Jeni wrote: I want to format any user enterable date which is "mm/dd/yy" into month as "mm" but as text. e.g. for 6/6/6 the variable should return "June" |
All times are GMT +1. The time now is 07:29 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com