+ Reply to Thread
Results 1 to 6 of 6

Double Lookups

  1. #1
    Registered User
    Join Date
    05-04-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    3

    Double Lookups

    Hello. I am currently having issues with my brain, and can't figure this out. I need a formula to detect a user selected item, and return a value based on another input item.

    A B C D E F G H I J
    1 Years 1 2 3 4 Years 1 2 3 4
    2 1
    3 2
    4 3

    Depending on the number of years the person has (input in A2), as well as their ranking (input by an X on the above sheet in B2:E2), it should return a value from the table F1:J4, based on where the user put an X in B2:E2. I am aware I can do IF statements, and create a bunch of hidden columns, but I am looking for a more elegant, thought out formula than I can create at the moment Thanks!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Double Lookups

    put it in a workbook the layout doesn't show to well as a post
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    05-04-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Double Lookups

    I hope this helps! Thank you!

    http://www.excelforum.com/attachment...1&d=1304598334
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Double Lookups

    are abc ect supposed to be the columns? put some x's somewhere and show the results you want

  5. #5
    Registered User
    Join Date
    05-04-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Double Lookups

    OK, so in this example, the person has been here 2 years. They are ranked 2 out of 4. The resulting formula should be 5, based on I4. Thank you!
    Attached Files Attached Files

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Double Lookups

    still not sure but
    =INDEX(H2:K5,MATCH(A2,G2:G5,0),INDEX(B2:E2,MATCH("x",B3:E3,0))) gives 5

+ 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