Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default Writing a month name from its number

If I evaluate month(7/7/2008) I get the number 7.

Apart from a whole bunch of nested if statements or something, how
would I get "July" instead?

Is there a built in function that does that?

This is in the context of a formula:

="Asset based fee for "&MONTH(B2)&" "&YEAR(B2)

Which displays "Asset based fee for 7 2008", where I'd like it to say
"Asset based fee for July 2008".

Travis
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Writing a month name from its number

try this

="Asset based fee for "& TEXT(B2,"mmmm") &" "& TEXT(B2,"yyyy")

--


Gary

"travis" wrote in message
...
If I evaluate month(7/7/2008) I get the number 7.

Apart from a whole bunch of nested if statements or something, how
would I get "July" instead?

Is there a built in function that does that?

This is in the context of a formula:

="Asset based fee for "&MONTH(B2)&" "&YEAR(B2)

Which displays "Asset based fee for 7 2008", where I'd like it to say
"Asset based fee for July 2008".

Travis



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Writing a month name from its number

="Asset based fee for "& TEXT(B2,"mmmm yyyy")

or even

=TEXT(B2,"""Asset based fee for ""mmmm yyyy")

--
__________________________________
HTH

Bob

"travis" wrote in message
...
If I evaluate month(7/7/2008) I get the number 7.

Apart from a whole bunch of nested if statements or something, how
would I get "July" instead?

Is there a built in function that does that?

This is in the context of a formula:

="Asset based fee for "&MONTH(B2)&" "&YEAR(B2)

Which displays "Asset based fee for 7 2008", where I'd like it to say
"Asset based fee for July 2008".

Travis



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
Number of days in month counted from shortened name of month & yea Tumar Excel Worksheet Functions 6 September 18th 07 03:36 PM
Converting Month Number to Month Text Abbreviation Bob Excel Worksheet Functions 10 May 12th 07 04:11 AM
Function or formula to convert "text" month to number of month Steve Vincent Excel Discussion (Misc queries) 1 February 4th 06 04:19 PM
show month number as month name in Excel? Phil Hart Excel Discussion (Misc queries) 3 June 20th 05 06:12 PM
How to extract month number from month name PM Excel Discussion (Misc queries) 2 January 19th 05 03:07 PM


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