+ Reply to Thread
Results 1 to 4 of 4

Lookup values based on criteria in two columns

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    42

    Lookup values based on criteria in two columns

    Hello,

    I am having trouble getting a lookup formula to pull some data from a table.
    I created a simple replica in hope that someone can shed any light.

    I have a table with data and need to plot information from it based on a value in two columns from the table.

    I cant use pivot tables unfortunatly...
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,576

    Re: Lookup values based on criteria in two columns

    Here, try this: =SUMPRODUCT(--($A$2:$A$100=$G2),--($B$2:$B$100=H$1),$E$2:$E$100)

  3. #3
    Registered User
    Join Date
    06-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Lookup values based on criteria in two columns

    Thanks, some of data i need to look up contains text though?

    PS what do the '--' stand for in the formula?

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Re: Lookup values based on criteria in two columns

    '--' is an Excel 'trick' to change True to 1 and False to 0.
    //Ola

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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