+ Reply to Thread
Results 1 to 8 of 8

Sumproduct Across Columns and Rows with multiple criteria

  1. #1
    Registered User
    Join Date
    01-31-2019
    Location
    India
    MS-Off Ver
    2011
    Posts
    22

    Sumproduct Across Columns and Rows with multiple criteria

    hi,

    See sample data below
    What i am trying to achieve is Count of all AL's and P's For JanW2, where supervisor is Rob.
    Answer i am looking for is 4.
    I am trying to get the formula in one formula string.

    Thanks for your help in advance.
    Name Supervisor JanW1 JanW1 JanW1 JanW2 JanW2 JanW2
    A Rob AL AL AL AL WO WO
    B Rob P P P P P P
    C Alisha AL SL P P WO WO
    Attached Files Attached Files
    Last edited by NainaH; 01-31-2019 at 09:59 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: Sumproduct Across Columns and Rows with multiple criteria

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually).

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Sumproduct Across Columns and Rows with multiple criteria

    This should work:
    =SUMPRODUCT((($C$2:$H$4="AL")+($C$2:$H$4="P"))*($B$2:$B$4=$J$2)*($C$1:$H$1=$J$3))
    J2=Rob
    J2=JanW1
    Click the * to say thanks.

  4. #4
    Registered User
    Join Date
    01-31-2019
    Location
    India
    MS-Off Ver
    2011
    Posts
    22

    Re: Sumproduct Across Columns and Rows with multiple criteria

    just added a sample file

  5. #5
    Registered User
    Join Date
    01-31-2019
    Location
    India
    MS-Off Ver
    2011
    Posts
    22

    Re: Sumproduct Across Columns and Rows with multiple criteria

    Paul i have multiple conditions and hence was hoping i dont have to use the + formula anything on the lines of "AL","P","X" that i could use?

  6. #6
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Sumproduct Across Columns and Rows with multiple criteria

    Something like this:

    =SUMPRODUCT(--ISNUMBER(MATCH($C$2:$H$4,{"AL","P","WO"},0))*($B$2:$B$4=$J$2)*($C$1:$H$1=$J$3))

    instead of {"AL","P","WO"} you can paste them in a range like E1:E3 and use it instead

  7. #7
    Registered User
    Join Date
    01-31-2019
    Location
    India
    MS-Off Ver
    2011
    Posts
    22

    Re: Sumproduct Across Columns and Rows with multiple criteria

    Thanks Paul, this works perfect!

  8. #8
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Sumproduct Across Columns and Rows with multiple criteria

    Glad to help.Please mark the thread as Solved from your first post, Thread Tools if that took care of it.

+ 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. [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
  2. Replies: 1
    Last Post: 08-16-2015, 08:59 AM
  3. [SOLVED] Sumproduct for multiple criteria across columns and rows
    By yacatac in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-12-2015, 07:46 AM
  4. 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
  5. [SOLVED] SUMPRODUCT on Multiple Columns and Criteria
    By glennchung in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2014, 02:44 PM
  6. Sumproduct Multiple Columns with Same Criteria
    By roy__lam in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-19-2014, 02:40 PM
  7. [SOLVED] SUMPRODUCT across multiple criteria and columns
    By richardj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-26-2012, 05:50 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