+ Reply to Thread
Results 1 to 4 of 4

unsorted lookup vector in LOOKUP

  1. #1
    Registered User
    Join Date
    05-05-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    unsorted lookup vector in LOOKUP

    Hi,
    =LOOKUP(L39,{"100/30","130/30","160/50","200/50","250/50","300/50","350/50","40/40","60/30","80/30"},{4,5,6,7,8,9,10,1,2,3})

    In the above formula, lookup vector is sorted and the corresponding values are returned. But I want to use unsorted lookup vector. My formula should look something like

    =LOOKUP(L39,{"40/40","60/30","80/30","100/30","130/30","160/50","200/50","250/50","300/50","350/50"},{1,2,3,4,5,6,7,8,9,10}).

    How can I write the lookup function with unsorted lookup vector.

    Thanks
    Last edited by nidabp; 05-07-2010 at 12:03 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: unsorted lookup vector in LOOKUP

    Create a lookup table in two columns in your workbook somewhere, then use VLOOKUP(). Press F1 and read up on VLOOKUP, set the 4th parameter to FALSE to use an unsorted table.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-05-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: unsorted lookup vector in LOOKUP

    Thank you..

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: unsorted lookup vector in LOOKUP

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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