Lookup Reference Functions MSOfficeExcel 2007 Tutorial

=LOOKUP("abcd",{"a",1;"b",2;"c",3})  looks up "abcd" in the first row of the array and finds the largest value that is less than or equal to it, and then returns the value in the last column that's in the same row.

Input the formula: =LOOKUP("abcd",{"a",1;"b",2;"c",3}). Press Enter to get the result.