Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default convert number to month and year in formula


Hi

How do I wright a formula by converting number 1 to January 2006, Number 2
to February 2006 and soforth?

Thanks
Soth
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 176
Default convert number to month and year in formula

=DATE(2006,your_number,1)

So,
DATE(2006,1,1) will output January 2006
DATE(2006,2,1) will output February 2006.

If you have a list of cells with 1,2,3, etc, say A1:A100, you can put the
formula =DATE(2006,A1,1) in cell B1 and drag down.

Does that help?
--
Regards,
Dave


"Soth" wrote:


Hi

How do I wright a formula by converting number 1 to January 2006, Number 2
to February 2006 and soforth?

Thanks
Soth

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default convert number to month and year in formula

Depending on what kind of value you want:

For a number between 1 and 12, inclusive, in A1

Date value:
B1: =DATE(YEAR(TODAY()),A1,1)
Format B1 as a date: mmmm yyyy

or for a text value:
B1: =TEXT(A1&"/1/"&YEAR(TODAY()),"mmmm yyyy")

Does either of those help?
***********
Regards,
Ron

XL2002, WinXP


"Soth" wrote:


Hi

How do I wright a formula by converting number 1 to January 2006, Number 2
to February 2006 and soforth?

Thanks
Soth

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default convert number to month and year in formula

you guys are the best ! thanks.

"Ron Coderre" wrote:

Depending on what kind of value you want:

For a number between 1 and 12, inclusive, in A1

Date value:
B1: =DATE(YEAR(TODAY()),A1,1)
Format B1 as a date: mmmm yyyy

or for a text value:
B1: =TEXT(A1&"/1/"&YEAR(TODAY()),"mmmm yyyy")

Does either of those help?
***********
Regards,
Ron

XL2002, WinXP


"Soth" wrote:


Hi

How do I wright a formula by converting number 1 to January 2006, Number 2
to February 2006 and soforth?

Thanks
Soth

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
holiday dates bucci Excel Worksheet Functions 4 June 15th 06 09:35 AM
Display number of day of month depending on the year Dn_ Excel Discussion (Misc queries) 1 May 24th 06 05:36 PM
HELP - need to returns the current number of past month this year and ... elz64 Excel Worksheet Functions 6 April 6th 05 01:37 PM
How do I convert a serial number to the month, day, and year in E. Judy Excel Discussion (Misc queries) 2 December 15th 04 03:38 PM
Convert week number into calendar month? WickyWick Excel Worksheet Functions 2 November 9th 04 09:01 PM


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