Hi,
I have a spreadsheet with some data, alongside each entry in the list is a month in "MMM" format. I want to lookup this value and return the full month using a LOOKUP formula. It used to use a VLOOKUP from another table but I want to get rid of this additional table.
Basically my formula is: "=LOOKUP(C1,{"JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"},{"JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"})"
If C1 contains "APR" the formula returns "#N/A", if it contains "MAY" it returns "AUGUST"(!). "JAN" returns "JANUARY" but that's as far as it seems to work.
Am I missing something really obvious? I've done a similar lookup before which took the month as a number and returned the month as a string (i.e. 2 = FEBRUARY, 4 = APRIL etc) and this worked fine.
Cheers!
I have a spreadsheet with some data, alongside each entry in the list is a month in "MMM" format. I want to lookup this value and return the full month using a LOOKUP formula. It used to use a VLOOKUP from another table but I want to get rid of this additional table.
Basically my formula is: "=LOOKUP(C1,{"JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"},{"JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"})"
If C1 contains "APR" the formula returns "#N/A", if it contains "MAY" it returns "AUGUST"(!). "JAN" returns "JANUARY" but that's as far as it seems to work.
Am I missing something really obvious? I've done a similar lookup before which took the month as a number and returned the month as a string (i.e. 2 = FEBRUARY, 4 = APRIL etc) and this worked fine.
Cheers!