#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default month function

Is there a way to use the month function so that if 12 is inputed, December
will be the output? Rather than the reverse. I tried

=Month(12)

but that doesn't return December. Could you help me please?! Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default month function

Assuming the "month" numbers are input in C1 down,
you could use something like this in say, D1, copied down:
=IF(OR(C1="",C112),"",VLOOKUP(C1,{1,"January";2," February";3,"March";4,"April";5,"May";6,"June";7," July";8,"August";9,"September";10,"October";11,"No vember";12,"December"},2,0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads: 15,500, Files: 352, Subscribers: 53
xdemechanik
---
"jordanpcpre" wrote:
Is there a way to use the month function so that if 12 is inputed, December
will be the output? Rather than the reverse. I tried

=Month(12)

but that doesn't return December. Could you help me please?! Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 342
Default month function

You could use the formula =month(1900,12,1) then do a custom format on the
cells with the formula of mmmm. That works for me.

Tom

"jordanpcpre" wrote:

Is there a way to use the month function so that if 12 is inputed, December
will be the output? Rather than the reverse. I tried

=Month(12)

but that doesn't return December. Could you help me please?! Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default month function

This should work...

=TEXT(28*A1,"mmmm")

where A1 contains your month number; of course, you could use the number, or
a calculation that results in the number, directly...

=TEXT(28*12,"mmmm")

Rick


"jordanpcpre" wrote in message
...
Is there a way to use the month function so that if 12 is inputed,
December
will be the output? Rather than the reverse. I tried

=Month(12)

but that doesn't return December. Could you help me please?! Thanks!


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default month function

As it turns out, you can save the function call and just use this...

=28*A1

where A1 contains the month number, or you can use this..

=28*12

where you would use whatever the number is in place of the 12, then use your
'mmmm' custom format.

Rick


"TomPl" wrote in message
...
You could use the formula =month(1900,12,1) then do a custom format on the
cells with the formula of mmmm. That works for me.

Tom

"jordanpcpre" wrote:

Is there a way to use the month function so that if 12 is inputed,
December
will be the output? Rather than the reverse. I tried

=Month(12)

but that doesn't return December. Could you help me please?! Thanks!




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 342
Default month function

That is very clever. Good job!

Tom

"Rick Rothstein (MVP - VB)" wrote:

As it turns out, you can save the function call and just use this...

=28*A1

where A1 contains the month number, or you can use this..

=28*12

where you would use whatever the number is in place of the 12, then use your
'mmmm' custom format.

Rick


"TomPl" wrote in message
...
You could use the formula =month(1900,12,1) then do a custom format on the
cells with the formula of mmmm. That works for me.

Tom

"jordanpcpre" wrote:

Is there a way to use the month function so that if 12 is inputed,
December
will be the output? Rather than the reverse. I tried

=Month(12)

but that doesn't return December. Could you help me please?! Thanks!



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default month function

Thanks. As it turns out, you can use either 28, 29 or 30 for the multiplier
constant.

Rick


"TomPl" wrote in message
...
That is very clever. Good job!

Tom

"Rick Rothstein (MVP - VB)" wrote:

As it turns out, you can save the function call and just use this...

=28*A1

where A1 contains the month number, or you can use this..

=28*12

where you would use whatever the number is in place of the 12, then use
your
'mmmm' custom format.

Rick


"TomPl" wrote in message
...
You could use the formula =month(1900,12,1) then do a custom format on
the
cells with the formula of mmmm. That works for me.

Tom

"jordanpcpre" wrote:

Is there a way to use the month function so that if 12 is inputed,
December
will be the output? Rather than the reverse. I tried

=Month(12)

but that doesn't return December. Could you help me please?! Thanks!




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default month function

Just to point out, you can use either 28, 29 or 30 for the multiplier
constant... your choice.

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
This should work...

=TEXT(28*A1,"mmmm")

where A1 contains your month number; of course, you could use the number,
or a calculation that results in the number, directly...

=TEXT(28*12,"mmmm")

Rick


"jordanpcpre" wrote in message
...
Is there a way to use the month function so that if 12 is inputed,
December
will be the output? Rather than the reverse. I tried

=Month(12)

but that doesn't return December. Could you help me please?! Thanks!



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default month function

On Jul 7, 9:17*am, "Rick Rothstein \(MVP - VB\)"
wrote:
Just to point out, you can use either 28, 29 or 30 for the multiplier
constant... your choice.

Rick

"Rick Rothstein (MVP - VB)" wrote in
. ..



This should work...


=TEXT(28*A1,"mmmm")


where A1 contains your month number; of course, you could use the number,
or a calculation that results in the number, directly...


=TEXT(28*12,"mmmm")


Rick


"jordanpcpre" wrote in message
...
Is there a way to use the month function so that if 12 is inputed,
December
will be the output? *Rather than the reverse. *I tried


=Month(12)


but that doesn't return December. *Could you help me please?! *Thanks!- Hide quoted text -


- Show quoted text -


Although answered, another way of going about it is to use the choose
function

=choose(A1, "Jan", "Feb", "Mar",etc...) Therefore, if a 12 is
entered, the formula will look to the 12th label within and result in
Dec
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
Function or formula to convert "text" month to number of month? Steve Vincent Excel Discussion (Misc queries) 5 May 15th 07 01:11 AM
function to fill all days of month to end of month Monique Excel Worksheet Functions 11 May 1st 06 07:39 PM
function to fill all days of month to end of month YaHootie Excel Worksheet Functions 10 May 1st 06 06:01 AM
When using MONTH function on Blank Cell!! Returns Month=Jan! mahou Excel Discussion (Misc queries) 6 January 9th 06 02:46 AM
=Month function in Excel gives incorrect month jbmx New Users to Excel 1 September 14th 05 07:58 PM


All times are GMT +1. The time now is 08:25 PM.

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"