+ Reply to Thread
Results 1 to 8 of 8

Sumif or Sumproduct with multiple criteria

  1. #1
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    Sumif or Sumproduct with multiple criteria

    Hi,

    I have a list of sales, the rep that made the sale, and from which division the sale came from.

    I'm trying to create a table that will sum each rep by sales they have in each division:
    (Totals in columns G>I)

    C D E F G H I
    SALES REP DIV REP A B
    100 14A A 14A 100 900
    900 14A B 14B

    I've played around with sum if,products and signs but I just can't get it to do what I want.
    In column G I have a list of reps, and I want to sum the sales values by divisions in columns H & I

    I've been trying =SUMPRODUCT(SIGN((D:D=G2)+(E:E=H1))*C:C) but it's not giving me the result I need.

    Can anyone offer any suggestions?

    Thanks.
    Last edited by BPSJACK; 09-30-2015 at 06:23 AM.

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

    Re: Sumif or Sumproduct with multiple criteria

    Try this...

    Entered in H2:

    =SUMIFS($C:$C,$D:$D,$G2,$E:$E,H$1)

    Copy across to I2 then down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Sumif or Sumproduct with multiple criteria

    Hi,

    sum per division:

    =SUMIF($E$2:$E$1000,H$1,$C$2:$C$1000)

    to be copied to the right

    Hope that helps


    Edit: sorry Tony Valko, I did not mean to overlap! Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Sumif or Sumproduct with multiple criteria

    pls attach sample excel file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    Re: Sumif or Sumproduct with multiple criteria

    Sample atatched
    Attached Files Attached Files

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

    Re: Sumif or Sumproduct with multiple criteria

    The formula in reply #2 does what you want.

  7. #7
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    Re: Sumif or Sumproduct with multiple criteria

    It absolutely does!

    Thanks for your help!

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

    Re: Sumif or Sumproduct with multiple 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)

Similar Threads

  1. [SOLVED] index match and sumproduct or sumif on multiple criteria
    By tabkaz in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-02-2014, 06:20 AM
  2. Sumif or sumproduct with multiple criteria
    By msoregon91 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2013, 03:56 PM
  3. [SOLVED] Sumif/sumproduct with a range as a criteria
    By fukirua in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-05-2013, 07:58 PM
  4. SUMPRODUCT or SUMIF using an array for criteria
    By rarascon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2013, 03:14 PM
  5. Replies: 2
    Last Post: 01-23-2013, 06:25 AM
  6. Sumproduct/sumif/indirect across multiple workbooks, worksheets, multiple criteria
    By robgardner15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2011, 02:35 AM
  7. SUMIF Multiple Criteria or SUMPRODUCT?
    By gdwright07 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-02-2008, 12:15 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