999HelpPlease
New Member
- Joined
- Jul 16, 2014
- Messages
- 35
I am trying to use the lookup function in excel.
In Cell M1 I have a drop down list of all the months of the year with just using the first three letters of the month.
In cell M2 I have the following lookup statement: =LOOKUP(M1,{"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug";"Sep";"Oct";"Nov";"Dec"},{1;2;3;4;5;6;7;8;9;10;11;12})
In cell M2 I want it to populate whichever number the month represents. Example : if Jan was in M1, then 1 would be in M2, if Dec was in M1, then 12 would be in M2.
For some reason some months work and some do not.
I have never used this function before am I doing something wrong or is there a better way of doing this?
In Cell M1 I have a drop down list of all the months of the year with just using the first three letters of the month.
In cell M2 I have the following lookup statement: =LOOKUP(M1,{"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug";"Sep";"Oct";"Nov";"Dec"},{1;2;3;4;5;6;7;8;9;10;11;12})
In cell M2 I want it to populate whichever number the month represents. Example : if Jan was in M1, then 1 would be in M2, if Dec was in M1, then 12 would be in M2.
For some reason some months work and some do not.
I have never used this function before am I doing something wrong or is there a better way of doing this?