+ Reply to Thread
Results 1 to 3 of 3

Look up range on two variable table

  1. #1
    Registered User
    Join Date
    07-20-2009
    Location
    maryland, usa
    MS-Off Ver
    Latest Excel (Excel 365)
    Posts
    30

    Look up range on two variable table

    Hi all,

    In advance, thanks for helping.

    I'm trying to put formula to find a value based on two variables. I was able to put formula to find it on two exact match, but my formula doesn't work when one variable is between other variables.

    For example, I have $250 million incremental for revenues from $250 million to $2 billion. If a firm has a revenue of $300 million, it gives me an error. I just can't seem to figure out how to add a range formula.

    Please see attached.

    Thanks!
    Attached Files Attached Files

  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 range on two variable table

    hi dhyun3. as long as row 2 is in ascending order, you can use approximate match. that is putting in 1 or not putting anything in the last argument of MATCH. it will try to find an exact match, but when it fails, it will use the last lowest number. The ones in row 2 should be based on the minimum value it requires for the category
    =VLOOKUP(D14,$B$3:$J$9,MATCH(C14,$B$2:$J$2),FALSE)

    or:
    =VLOOKUP(D14,$B$3:$J$9,MATCH(C14,$B$2:$J$2),0)

    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
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Look up range on two variable table

    In order to get the correct answer, I had to use this minor difference in the formula given by Benishiryo because I always got the result from 1 column to the left of where I expected.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This also works:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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