+ Reply to Thread
Results 1 to 3 of 3

Help with SUMPRODUCT on multiple columns

  1. #1
    Registered User
    Join Date
    12-24-2019
    Location
    Chandler, AZ
    MS-Off Ver
    Office 365
    Posts
    13

    Help with SUMPRODUCT on multiple columns

    Hello all!

    I know this has to be simpler than I'm making it, but my brain is drawing a blank right now!

    I've used this SUMPRODUCT formula before to count the total number of occurrences of a certain piece of data across multiple sheets within a workbook, but I'm only able to pull these together one column at a time. As you'll see in the attached sheet, I'm counting the total number of reviews done for each agent in our department month-over-month, but want to avoid an extremely lengthy formula to add them all.

    =SUMPRODUCT(SUMIF(INDIRECT("'"&months&"'!"&"B:B"),B2,INDIRECT("'"&months&"'!"&"C:AG")))

    Months of course, is the named range for each sheet and columns C:AG are the cells I'm trying to total up for each agent.

    There's an easier way to do this correct?
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,378

    Re: Help with SUMPRODUCT on multiple columns

    TRY C2 cell array formula
    {=SUM(SUMIF(INDIRECT(months&"!B:B"),B2,OFFSET(INDIRECT(months&"!C:C"),,TRANSPOSE(ROW($1:$31)-1),,)))}

    if you want manager and employee criteria pls try to use sumifs formular
    {=SUM(SUMIFS(OFFSET(INDIRECT("'"&months&"'!C:C"),,TRANSPOSE(ROW($1:$31)-1),),INDIRECT("'"&months&"'!A:A"),$A2,INDIRECT("'"&months&"'!B:B"),$B2))}
    Last edited by wk9128; 08-20-2020 at 10:13 PM.

  3. #3
    Registered User
    Join Date
    12-24-2019
    Location
    Chandler, AZ
    MS-Off Ver
    Office 365
    Posts
    13

    Re: Help with SUMPRODUCT on multiple columns

    Awesome, that does the trick! Much appreciated!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. multiple columns using sumproduct
    By GuruIamnot in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-15-2015, 12:10 PM
  2. [SOLVED] SUMPRODUCT of multiple columns with multiple criteria over multiple sheets
    By BellyGas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2015, 08:27 AM
  3. Count w/multiple criteria across multiple columns - SUMPRODUCT, MATCH?
    By MrHoohah in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2015, 05:23 PM
  4. sumproduct multiple columns
    By xahkazakhstan in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-09-2015, 03:28 AM
  5. Sumproduct, Multiple Columns
    By VegasL in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2013, 11:39 PM
  6. Sumproduct with multiple critera, and summing multiple Columns
    By shanea.kr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-09-2012, 03:12 PM
  7. [SOLVED] sumproduct from multiple columns
    By shadyshawn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-11-2012, 12:45 PM

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