+ Reply to Thread
Results 1 to 7 of 7

Sum with 3 different criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Sum with 3 different criteria

    Hi there,

    I am trying to do a sum with 3 different criteria. If you open up the attached spreadsheet if will hopefully make more sense. What I want to do is a sum if the top row equals 5, the send row equals 2, and the person is a particular number in column A, for this example let's pick out "PERSON 1".

    So I should get an answer that is 12+3+7=22. How on earth do I do this. I would really appreciate your help and thanks in advance!

    DIFFICULT SUM.xlsx

  2. #2
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Valrico, FL USA
    MS-Off Ver
    Excel 2016
    Posts
    358

    Re: Sum with 3 different criteria

    Try the formula below in cell M3, then copy down

    =SUMPRODUCT(($B$1:$L$1=5)*($B$2:$L$2=2)*(B3:L3))
    Last edited by ncmay; 06-12-2013 at 07:17 PM. Reason: added a word

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Sum with 3 different criteria

    Awesome, thanks so much ncmay! Just a quick question, is it possible to do a lookup on "Person 1" rather than the reference to the cells of that person?
    Last edited by martinpgibson; 06-12-2013 at 07:26 PM.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum with 3 different criteria

    Try this...

    A15 = Person 1

    =SUMIFS(INDEX(B3:L10,MATCH(A15,A3:A10,0),0),B1:L1,5,B2:L2,2)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Sum with 3 different criteria

    array formula
    {=SUM(IF(B1:L1&B2:L2&A3:A10="52person 1",B3:L10))}

  6. #6
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Sum with 3 different criteria

    Thanks Ghozi, that is a genius way of doing what I wanted to do, I have never thought about that lookup technique before!

  7. #7
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Valrico, FL USA
    MS-Off Ver
    Excel 2016
    Posts
    358

    Re: Sum with 3 different criteria

    In the attached file select the desired name from the drop down in cell A1 and the total for that person is displayed in cell B1
    Attached Files Attached Files

+ 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