FlyerTalk Forums - View Single Post - MS Excel Help
Thread: MS Excel Help
View Single Post
Old May 23, 2006 | 7:37 pm
  #28  
Kiwi Flyer
Moderator, Hilton Honors
Conversation Starter
All eyes on you!
20 Years on Site
 
Join Date: Nov 2003
Location: on a short leash
Programs: some
Posts: 71,445
Yup. In this case your table of descriptions doesnt need to be sorted, but make sure your code entries match exactly. Then inside the "match(lookup,table,#)" put 0 (instead of the 1 above). This finds exact match.

I usually like to put into the formula some code in case there is no exact match (eg typos or new codes). Something like this would do it.

=if(iserror(match(a8,$a$1:$a$5,0)),"Error - no entry",index($b$1:$b$5,match(a8,$a$1:$a$5,0)))
Kiwi Flyer is offline