Results 1 to 3 of 3

Thread: looking up data in a table from another table based on 3 criteria

  1. #1

    looking up data in a table from another table based on 3 criteria



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hello Everyone,
    I wanted to ask your help regarding an excel matter, currently i have two tables having different formats,
    i need to lookup the data in the first table from the data in the second table based on 3 criteria, the two tables are very big and have alot of data so i will just put here simpler tables as an example:

    Table 1(the one need to be filled):
    Site Name Sector ID Info 1 Info 2 Info 3
    x Sector 1
    x Sector 2
    x Sector 3
    y Sector 1
    y Sector 2
    y Sector 3
    z Sector 1
    z Sector 2
    z Sector 3




    Table 2(The one which contains the data):
    Sector 1 Sector 1 Sector 1 Sector 2 Sector 2 Sector 2 Sector 3 Sector 3 Sector 3
    Site Name Info 3 Info 1 Info 2 Info 3 Info 1 Info 2 Info 3 Info 1 Info 2
    x 1 4 7 10 13 16 19 22 25
    y 2 5 8 11 14 17 20 23 26
    z 3 6 9 12 15 18 21 24 27


    The numbers in the table are just for example.

    so the criteria here is the site name and the Info and the Sector ID, and we should return the value corresponding to them, i tried several times but i failed to find a solution so i'm seeking your help, i hope you can help me.

    Thanks in advance.

  2. #2
    Administrator Pecoflyer's Avatar
    Join Date
    Oct 2011
    Location
    Brussels Belgium
    Posts
    1,679
    Articles
    0
    Excel Version
    2010 on Xubuntu
    Hi and welcome
    Please Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Add links as text if necessary
    Thank you Ken for this secure forum.

  3. #3
    Magician navic's Avatar
    Join Date
    Aug 2013
    Location
    Europe, Croatia
    Posts
    887
    Articles
    0
    Excel Version
    Excel 2013
    Quote Originally Posted by everyone0 View Post
    i hope you can help me.
    Try use SUMPRODUCT
    Code:
    =SUMPRODUCT(($A$3:$A$5=$L2)*($B$1:$J$1=$M2)*($B$2:$J$2=N$1)*$B$3:$J$5)
    See example
    Attached Files Attached Files
    My personal Web Excel Tutorials
    Attention! In the formulas as a delimiter I use a semicolon (; ) if you using my formula, then perhaps you need to use a comma (,)
    Also for a decimal number I use a comma (,) you may need to use point (.) instead of

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •