+ Reply to Thread
Results 1 to 2 of 2

Lookup help needed

  1. #1
    Registered User
    Join Date
    11-25-2011
    Location
    luton
    MS-Off Ver
    Excel 2003
    Posts
    9

    Lookup help needed

    Hi Guys

    Is there anyway to confine a lookup search to a specific section of my data. i.e.

    apple 0 a
    apple 10 b
    apple 20 c
    apple 30 d
    banana 0 e
    banana 10 f
    banana 20 g
    banana 30 h
    pear 0 i
    pear 10 j
    pear 20 k
    pear 30 l

    I have a much larger string of data, but for simplicity lets say I want to do a lookup on only the data with apple in the first column. OBviously this can be done with the vlookup but I need to use a lookup as the values in the second column are all upper bounds. I want to use the fruit and then the price in to find the upper bound in the second column and therefore the corresponding letter

    Any help appreciated.

    Thanks

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Lookup help needed

    You can enter the formula as an Array using INDEX like so

    =INDEX($C$1:$C$12,MATCH(E1&F1,$A$1:$A$12&$B$1:$B$12,0))
    where E1 contains the value from A you want to look up and F1 contains the value from B.
    Enter an array formula with CNTRL SHFT ENTER instead of ENTER. You'll see {} appear around the formula if you do it right. Does this work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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