+ Reply to Thread
Results 1 to 4 of 4

Three way lookup

  1. #1
    Registered User
    Join Date
    10-28-2015
    Location
    Columbia, SC
    MS-Off Ver
    365
    Posts
    1

    Three way lookup

    I'm having some issues with a three way lookup. I've searched the forums and found some answers but can't get them to work. I've attached an example spreadsheet and am trying to get the "answer" field to return data using the input cells in B2:B4. Any help would be greatly appreciated!



    Excel Example.xlsx

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Three way lookup

    With an ARRAYED FORMULA

    =INDEX(C8:K19, MATCH(B3&B2, A8:A19&B8:B19,0),MATCH(B4,C7:K7,0))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Three way lookup

    with a helpcolumn in A.

    After that index / match.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Three way lookup

    =SUM((A8:A19=B3)*(B8:B19=B2)*(INDEX(C8:K19,,MATCH(B4,C7:K7,0))))

    Try that formula - you need to press Ctrl+Shift+Enter to confirm the formula.


    Edit:

    THis version is more friendly - it's a regular formula (no need for Ctrl+Shift+Enter)

    =SUMPRODUCT((A8:A19=B3)*(B8:B19=B2)*(INDEX(C8:K19,,MATCH(B4,C7:K7,0))))
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Two Lookup and Return (Lookup the column, then lookup the row)
    By Branbran10 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-05-2015, 04:55 PM
  2. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  3. Replies: 3
    Last Post: 04-08-2014, 03:11 AM
  4. Replies: 2
    Last Post: 05-19-2013, 08:46 AM
  5. Replies: 1
    Last Post: 11-07-2012, 01:57 PM
  6. Search lookup array to find lookup value contained within text string
    By Cookstein2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2011, 09:42 AM
  7. Replies: 7
    Last Post: 06-19-2011, 12:51 PM

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