+ Reply to Thread
Results 1 to 4 of 4

Lookup vector - result vector

Hybrid View

  1. #1
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Lookup vector - result vector

    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})
    Cat	1
    Dog	5
    Horse	8
    Cow	5
    Chicken	5
    Pig	9
    Donkey	7
    Elephant	8
    Monkey	9
    abousetta
    Last edited by abousetta; 08-23-2011 at 03:00 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Lookup vector - result vector

    The lookup vector should be sorted alphabetically

  3. #3
    Registered User
    Join Date
    08-22-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Lookup vector - result vector

    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})

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Lookup vector - result vector

    Thank you both for the suggestions. Works now.

    abousetta

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1