+ Reply to Thread
Results 1 to 5 of 5

Return cell value based on criteria of 2 columns

  1. #1
    Registered User
    Join Date
    04-03-2009
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    17

    Return cell value based on criteria of 2 columns

    Hi all,
    I've searched, researched and scratched my brain on this and I can't seem to get this formula to work. I'm using nesting sumproduct formula, but this is not working.

    What I'm trying to do is populate a table in one worksheet, using data from another worksheet....the catch - The formula must look up 2 values in columns A and B and return the value in column C.

    Attached is the sample of what I'm trying to do, and a sample of the formula I'm trying to use.

    All help would be greatly appreciated.
    Cheers,
    Fatnslow
    Attached Files Attached Files
    Last edited by Fatnslow; 07-03-2012 at 04:54 AM.

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

    Re: Return cell value based on criteria of 2 columns

    Almost there Fatnslow:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Another way would be Pivot table:
    Attached Files Attached Files
    Last edited by zbor; 07-03-2012 at 04:44 AM.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Return cell value based on criteria of 2 columns

    Hi. try

    =SUMPRODUCT(($A$2:$A$13=A22)*($B$2:$B$13=B22)*($C$2:C13))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Return cell value based on criteria of 2 columns

    Try this formula in cell C22 and copy down - =SUMPRODUCT(--($A$2:A$13=A22)*(B$2:B$13=B22),C$2:C$13)

    You will also need to fill in A22-A25 with Australia and A27-A29 with US etc. in order for this to work.

    Is that what you meant?
    If I've been of help, please hit the star

  5. #5
    Registered User
    Join Date
    04-03-2009
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Return cell value based on criteria of 2 columns

    Thanks everyone, got it now!!!

+ 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