Hello,
I have used Lookup before but am getting inconsistent results with this formula and am wondering if anyone can see what is going on:
=LOOKUP(A1,{"Cat","Dog","Horse","Cow","Chicken","Pig","Donkey","Elephant","Monkey"},{1,2,3,4,5,6,7,8,9})abousettaCat 1 Dog 5 Horse 8 Cow 5 Chicken 5 Pig 9 Donkey 7 Elephant 8 Monkey 9
Last edited by abousetta; 08-23-2011 at 03:00 AM.
The lookup vector should be sorted alphabetically
Quoting entire posts clutters the forum and makes threads hard to read !
If you are pleased with a member's answer then use the Star icon to rate it
Click here to see forum rules
Try the following correction to the syntax:
=LOOKUP(A1,{"Cat","Dog","Horse","Cow","Chicken","Pig","Donkey","Elephant","Monkey";1,2,3,4,5,6,7,8,9 })
Thank you both for the suggestions. Works now.
abousetta
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks