+ Reply to Thread
Results 1 to 5 of 5

Lookup functions

  1. #1
    Registered User
    Join Date
    07-08-2006
    Posts
    2

    Lookup functions

    Hello everyone,

    For a couple of weeks i've been trying to create a formula to find a given value in a big range of numbers and give back the number in the column next to it on the cell next to the input.

    Example:

    R1 | C2 | C3 | C4 |
    R1 | D1 | D3 | D5 |
    R2 | D2 | D4 | D6 |

    When I fill D1 in cell 1, I want in cell 2(the cell next to it) the value D3.

    The lookup/vlookup/match/hlookup don't match the citeria, but maybe there is a possibility to make a combination of those formulas?

    I hope the explanation is clear and someone can help me.

    Gr. Arie

  2. #2
    Bob Phillips
    Guest

    Re: Lookup functions

    Why not just

    =VLOOKUP(lookup_val,B2:D200,2,False)

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "arnoberg" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hello everyone,
    >
    > For a couple of weeks i've been trying to create a formula to find a
    > given value in a big range of numbers and give back the number in the
    > column next to it on the cell next to the input.
    >
    > Example:
    >
    > R1 | C2 | C3 | C4 |
    > R1 | D1 | D3 | D5 |
    > R2 | D2 | D4 | D6 |
    >
    > When I fill D1 in cell 1, I want in cell 2(the cell next to it) the
    > value D3.
    >
    > The lookup/vlookup/match/hlookup don't match the citeria, but maybe
    > there is a possibility to make a combination of those formulas?
    >
    > I hope the explanation is clear and someone can help me.
    >
    > Gr. Arie
    >
    >
    > --
    > arnoberg
    > ------------------------------------------------------------------------
    > arnoberg's Profile:

    http://www.excelforum.com/member.php...o&userid=36187
    > View this thread: http://www.excelforum.com/showthread...hreadid=559612
    >




  3. #3
    Ardus Petus
    Guest

    Re: Lookup functions

    Which result do you want in cell 2 if Cell 1 holds D5
    (there's no cell right of D5)

    HTH
    --
    AP

    "arnoberg" <[email protected]> a écrit
    dans le message de news:
    [email protected]...
    >
    > Hello everyone,
    >
    > For a couple of weeks i've been trying to create a formula to find a
    > given value in a big range of numbers and give back the number in the
    > column next to it on the cell next to the input.
    >
    > Example:
    >
    > R1 | C2 | C3 | C4 |
    > R1 | D1 | D3 | D5 |
    > R2 | D2 | D4 | D6 |
    >
    > When I fill D1 in cell 1, I want in cell 2(the cell next to it) the
    > value D3.
    >
    > The lookup/vlookup/match/hlookup don't match the citeria, but maybe
    > there is a possibility to make a combination of those formulas?
    >
    > I hope the explanation is clear and someone can help me.
    >
    > Gr. Arie
    >
    >
    > --
    > arnoberg
    > ------------------------------------------------------------------------
    > arnoberg's Profile:
    > http://www.excelforum.com/member.php...o&userid=36187
    > View this thread: http://www.excelforum.com/showthread...hreadid=559612
    >




  4. #4
    Registered User
    Join Date
    07-08-2006
    Posts
    2
    Thnx for you answers, but i'm still not there.

    @ Bob Philips: Youre solution would be correct if i would only like the values of the second column. What happens when I fill D4 in cell1. Then i will get an error, and in my spreadsheat I want the value D6. So in fact we need your formula with a variable column!

    @ Ardus Petes:if cell 1 holds D5 I want no value or 0.

    Could you please help me further?
    Last edited by arnoberg; 07-08-2006 at 12:02 PM.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Assuming your data is in B1:D2 and your lookup value in H1 try

    =VLOOKUP(H1,OFFSET(B1:C2,,MIN(IF(B1:D2=H1,COLUMN(B1:D2)-COLUMN($B2)))),2,0)

    confirmed with CTRL+SHIFT+ENTER.

+ 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