+ Reply to Thread
Results 1 to 5 of 5

lookup 2 columns and 1 row to return a value from the table

  1. #1
    Registered User
    Join Date
    06-22-2012
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2003
    Posts
    3

    lookup 2 columns and 1 row to return a value from the table

    Hi, I am new to the board, I was hoping someone could help me create a formula. I have a table, and I first need to lookup a value from 1 column with in the table, then, based off that value, I need to lookup a value in the next column, and then lookup a row, to retunr a value. My enclosed spreadsheet helps explain. I have used index/mtch in the past to lookup the column then row to return a value from the table, however, in my current problem, I have 2 columns of data i need to look up.

    Thank you very much for any guidance/help
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: lookup 2 columns and 1 row to return a value from the table

    Try this based on the inputs in A20:A22

    =SUMIFS(INDEX($C$4:$F$15,0,MATCH(A22,$C$3:$F$3,0)),$A$4:$A$15,A20,$B$4:$B$15,A21)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-22-2012
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: lookup 2 columns and 1 row to return a value from the table

    That's Awesome !!!! Thank You so much. I wasted 2 hours this morning trying to figure this out ( even tried the "sumifs" but gave up on them). I substituted in my named ranges and it works great. And thank you for such a quick response.

    Best Regards !!
    greg

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: lookup 2 columns and 1 row to return a value from the table

    You are welcome.

    Please try to remember to mark your thread as SOLVED once satisfied.

  5. #5
    Registered User
    Join Date
    06-22-2012
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: lookup 2 columns and 1 row to return a value from the table

    sorry about that - just did - thx again.

+ 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