+ Reply to Thread
Results 1 to 5 of 5

Look up a value & text combination where the value is not an exact match in data table

  1. #1
    Registered User
    Join Date
    04-10-2013
    Location
    Green Bay, WI
    MS-Off Ver
    Excel 2003
    Posts
    8

    Look up a value & text combination where the value is not an exact match in data table

    Using the attached file, the formula that I currently have in cell A22 returns a result in cell A20 that exactly matches an amount in my data table. I want to be able to modify this formula to also have the ability to lookup an amount such as $1.20 and return $.10, the amount in Col C that relates to a value that cannot be higher than the amount entered (i.e. $1.25 is > $1.20 so $.25 cannot be returned, $1.10 is < $1.20, therefore $.10 is returned).
    Question.xls

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Look up a value & text combination where the value is not an exact match in data table

    hi Kraftyk, welcome to the forum. i dont really understand the explanation, but i'm guessing this is what you need:
    =LOOKUP(2,1/((A2:A15=B22)*(B2:B15<=A22)),C2:C15)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    04-09-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Look up a value & text combination where the value is not an exact match in data table

    HI,

    I Have one Doubt . May i know how Lookup Works.

    By Vengat

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Look up a value & text combination where the value is not an exact match in data table

    vengat, Welcome to the Forum.

    I dont see how your question is relevant to answering the OP's question?

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    04-10-2013
    Location
    Green Bay, WI
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Look up a value & text combination where the value is not an exact match in data table

    Thanks, this is exactly what I was looking for!

+ 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