+ Reply to Thread
Results 1 to 2 of 2

vlookup up to the next increment

  1. #1
    Andy
    Guest

    vlookup up to the next increment

    I was wondering if this is possible or not but here it is

    I want to do a vlookup, but if the value that is question is greater that
    what it finds it would go to the next value.
    A B
    1 30
    2 25 12
    3 35 10
    4 50 8
    5 65 6

    So currently the formula looks like this vlookup(A1,A2:B5,2,true). With that
    formula it will give me a value of 12, but i want to give me the b10 value
    (10). Same goes if the value is 55 or 60, i dont want the returning value to
    be 8, i want it to be 6.

    I hope you guys can help

    Thanks in advance
    Andy


  2. #2
    Niek Otten
    Guest

    Re: vlookup up to the next increment

    Hi Andy,

    =INDEX(B2:B5,MATCH(A1,A2:A5)+1)

    --
    Kind regards,

    Niek Otten

    "Andy" <[email protected]> wrote in message
    news:[email protected]...
    >I was wondering if this is possible or not but here it is
    >
    > I want to do a vlookup, but if the value that is question is greater that
    > what it finds it would go to the next value.
    > A B
    > 1 30
    > 2 25 12
    > 3 35 10
    > 4 50 8
    > 5 65 6
    >
    > So currently the formula looks like this vlookup(A1,A2:B5,2,true). With
    > that
    > formula it will give me a value of 12, but i want to give me the b10 value
    > (10). Same goes if the value is 55 or 60, i dont want the returning value
    > to
    > be 8, i want it to be 6.
    >
    > I hope you guys can help
    >
    > Thanks in advance
    > Andy
    >




+ 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