+ Reply to Thread
Results 1 to 4 of 4

Index match between two tabels with two criterias

  1. #1
    Forum Contributor timtim89's Avatar
    Join Date
    01-05-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    141

    Index match between two tabels with two criterias

    Hey there,

    Simplified a bit, my problem is that I am trying to lookup a value from one table to another if two criterias are matching. I am using tables, so the expression gets rather long, but please take a look at the attachment and it should be clear.

    As the function is in Danish and I cannot seem to find the Code signs (#) in here anymore, I wont try to paste the code here, cause it would just get messy.


    Thanks a lot in advance for your help.

    Timo
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Index match between two tabels with two criterias

    hi Timo. if the 2nd table has unique values, you could try:
    =SUMIFS(Tabel2[Volume],Tabel2[Itemnr],Tabel1[[#This Row],[Itemnr]],Tabel2[Country code],Tabel1[[#This Row],[Country code]])

    or in terms of cell references:
    =SUMIFS($L$5:$L$12,$J$5:$J$12,B5,$K$5:$K$12,C5)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Index match between two tabels with two criterias

    Since you aren't referencing any string values, I went with SUMIFS over INDEX(..MATCH(.

    =SUMIFS($L$6:$L$12,$J$6:$J$12,[@Itemnr],$K$6:$K$12,[@[Country code]])

    Because you're using a table, make the sure absolute references are in place as in my equation.

  4. #4
    Forum Contributor timtim89's Avatar
    Join Date
    01-05-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    141

    Re: Index match between two tabels with two criterias

    @benishiryo
    Thanks a lot, I tried the first solution and it works perfect.

    @daffodil11
    Seems to work perfect as well. As tables are still pretty new to me, could you please explain if there's any difference between [@[Country code]] and [@Country code]. Cause you have both types in your code?

    I noticed that F4 doesn't put in the references, so wasn't sure how that works with tables..

+ 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. Find value in range with two criterias, INDEX MATCH MAX
    By gnoke in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-24-2014, 07:48 AM
  2. [SOLVED] INDEX & MATCH w multiple criterias?
    By Eemmai in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2012, 05:20 AM
  3. index match based on multiple criterias
    By jw01 in forum Excel General
    Replies: 4
    Last Post: 09-13-2011, 02:21 PM
  4. need help in sum up multi criterias (index & match)
    By aroundyou in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-17-2006, 08:25 PM
  5. need help in sum up multi criterias (index & match)
    By aroundyou in forum Excel General
    Replies: 3
    Last Post: 10-15-2006, 07:53 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