+ Reply to Thread
Results 1 to 5 of 5

Sumproduct with 42 criteria

  1. #1
    Registered User
    Join Date
    03-02-2013
    Location
    America
    MS-Off Ver
    Excel 2003
    Posts
    9

    Sumproduct with 42 criteria

    Hello all,

    I am trying to use SUMPRODUCT with 42 different criteria.

    =sumproduct((Sheet1!$A$2:$A$1000=Sheet2!A2)*(Sheet1!$C$2:$C$1000=my 42 criteria))

    Column A on Sheet1 is a list of names, cell A2 on Sheet2 is one of those names I want the info for. Column C on Sheet1 contains the 42 criteria, amongst other info.

    All 42 items are in the same column, say F on sheet2 for the sake of argument. I've tried making them a named list, but I haven't been able to get that to work.

    I would like to avoid putting each of the criteria individually into the formula if possible.

    Thank you in advance for any help and advice!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sumproduct with 42 criteria

    I think you should look at pivot table for that kind of work.

    Especialy now all the arguments are in column F (same column)
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

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

    Re: Sumproduct with 42 criteria

    Try it like this...

    Let's assume your 42 criteria are in the range Sheet2 F2:F43.

    =SUMPRODUCT(--(Sheet1!$A$2:$A$1000=Sheet2!A2),--ISNUMBER(MATCH(Sheet1!$C$2:$C$1000,Sheet2!F2:F43,0)))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    03-02-2013
    Location
    America
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Sumproduct with 42 criteria

    I cannot thank you enough That worked perfectly.

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

    Re: Sumproduct with 42 criteria

    You're welcome. Thanks for the feedback!

+ 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