Excel formula help _ Get month number from Month Name.

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
Hi, is there a way for Excel formula to Get month number from Month Name.
1 for Jan etc
maybe choose, lookup etc...

Thanks for helping....

I have january in A1, i want result 1 in B1
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi, is there a way for Excel formula to Get month number from Month Name.
1 for Jan etc
maybe choose, lookup etc...

Thanks for helping....

I have january in A1, i want result 1 in B1
This works in my location (U.S.)...

=MONTH(A1&1)
 
Upvote 0
Try:
Code:
=MATCH(UPPER(A1),{"JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"},0)
 
Upvote 0
Depending on how you're using it, but here's somethign basic to illustrate what you want, but it can be easily cleaned up with named ranges and the like.

This will work if it is just text

=MATCH(A1,{"January";"February";"March";"April";"May";"June";"July";"August";"September";"October";"November"},0)

If it's a serial date, you can use =MONTH(A1)
 
Upvote 0
Perfect works great for me too....:)
Why "&1" is there any logic behind that, if i may ask?
 
Upvote 0
JackDenice and JackDanIce...thanks for the reply and showing the other approach....

Regards
Pedie:)
 
Upvote 0
Perfect works great for me too....:)
Why "&1" is there any logic behind that, if i may ask?
Excel is extremely "eager" to recognize a date entry.

If A1 contains some month name like January, then concatenating 1 like A1&1 produces January1 which the MONTH function evaluates as the date January 1 of the current year (January 1 2011).
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top