+ Reply to Thread
Results 1 to 5 of 5

sumproduct() with sumifs()?

  1. #1
    Registered User
    Join Date
    02-02-2012
    Location
    il
    MS-Off Ver
    Excel 2010
    Posts
    3

    sumproduct() with sumifs()?

    HELP!! I want to sum calculated values across columns, but only for rows meeting certain criteria.

    For example,

    Sumifs(a:a*b:b/c:c, D:D, >5, D:D, <10, E:E="yes") where the result is the sum of each row [a*b/c] where d is greater than 5 AND less than 10 AND E = "yes")

    A ----B----C----D----E
    12 7 2 4 Yes
    11 8 4 6 NO
    8 6 6 3 NO
    7 12 4 12 YES
    14 4 8 7 YES
    10 5 25 8 YES

    result=7+2 = 9

    Thanks for any help or direction you can provide!

  2. #2
    Valued Forum Contributor
    Join Date
    05-07-2014
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    313

    Re: sumproduct() with sumifs()?

    Hi,

    Please refer below formula, as I understand your requirement is Cell D1 should be greater than 5 and less than 10 and E1 Cell is "yes" then formula should give the result A1*B1/C1.

    =IF(AND(D1>5,D1<10,E1="yes"),A1*B1/C1,B1+C1)

    Please check if its works, otherwise please attached the Excel file.
    Thanks
    Nisha Dhawan


    If you like my answer please click on * Add Reputation
    "If you can dream it, You can do it "

  3. #3
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: sumproduct() with sumifs()?

    Quote Originally Posted by Nisha Dhawan View Post

    =IF(AND(D1>5,D1<10,E1="yes"),A1*B1/C1,B1+C1)
    Small Correction in your formula - Try this in F2 and drag it to F6 then you can sum up in F8. - =IF(AND(E2="Yes",D2>5,D2<10),SUM(A2*B2/C2),"")
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  4. #4
    Registered User
    Join Date
    02-02-2012
    Location
    il
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: sumproduct() with sumifs()?

    I was hoping to do this without needing another column to generate values for each row and then summing them.. Looking for something similar to a single Sumifs() and or sumproduct() function. Also all the values calculated and the columns with the criteria are from another workbook
    Last edited by hatzopoulos; 04-11-2015 at 02:23 AM.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: sumproduct() with sumifs()?

    Try this...
    =SUMPRODUCT(((E2:E7="Yes")*(D2:D7>5)*(D2:D7<10)*(A2:A7)*(B2:B7)/(C2:C7)))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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 with SUMIFS?
    By TPDave in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-25-2015, 04:30 AM
  2. [SOLVED] SUMPRODUCT v SUMIFS
    By D_N_L in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-24-2013, 09:48 AM
  3. [SOLVED] SUMIFS or SUMPRODUCT???
    By PERE in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-25-2013, 11:52 AM
  4. [SOLVED] SUMPRODUCT(SUMIFS) How do I use them?
    By boon-yao.tek in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-20-2013, 05:10 AM
  5. Sumproduct/sumifs?
    By MjRmatt in forum Excel General
    Replies: 4
    Last Post: 07-30-2010, 08:09 AM

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