• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to derive Month number from Month text; Jan = 1 Feb = 2

ThrottleWorks

Excel Ninja
Hi,

I am trying get Month number from Month text using below mentioned formula.
For example Jan will be 1, Feb will 2 and so on.

Is there a better way to derive Month number. Can anyone please help me in this.

=IF(A2="Jan",1,IF(A2="Feb",2,IF(A2="Mar",3,IF(A2="Apr",4,IF(A2="May",5,IF(A2="Jun",6,IF(A2="Jul",7,IF(A2="Aug",8,IF(A2="Sep",9,IF(A2="Oct",10,IF(A2="Nov",11,IF(A2="Dec",12))))))))))))
 
Back
Top