+ Reply to Thread
Results 1 to 9 of 9

SUMIFS with a formula

  1. #1
    Registered User
    Join Date
    07-18-2017
    Location
    UK
    MS-Off Ver
    2010
    Posts
    21

    SUMIFS with a formula

    Hello

    I am trying to sum the values of a formula with two conditions. I am using "SUMIFS" function but its giving me an error.

    Could anyone help please?

    Edit: Here is the explaination of what I am trying to achieve.

    I have this formula:
    (A1:A9+B1:B9)/(C1:C9-D1:D9)

    Simply, addition of values in column A and B then divided by (column C - column D). Then total sum of all results. I am trying to write this formula in A12 (attached spreadsheet).

    However, if the Column C - Column D result is zero, the formula will generate an error.

    So if I just simply write Sum((A1:A9+B1:B9)/(C1:C9-D1:D9)), it would generate error because some of the values will be dividing by zero.

    To solve this, I am trying to give it a condition where it only sums the values based on "non zero" column C and D.

    Thanks
    Attached Files Attached Files
    Last edited by Subtle; 04-15-2022 at 05:20 PM.

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,092

    Re: SUMIFS with a formula

    where are the expected results (and/or explanation, preferably both) so that we can understand what you are trying to achieve?
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

  3. #3
    Registered User
    Join Date
    07-18-2017
    Location
    UK
    MS-Off Ver
    2010
    Posts
    21

    Re: SUMIFS with a formula

    Sorry. I have updated the original post. Thanks.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,133

    Re: SUMIFS with a formula

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,092

    Re: SUMIFS with a formula

    try this:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-18-2017
    Location
    UK
    MS-Off Ver
    2010
    Posts
    21

    Re: SUMIFS with a formula

    Thank you both. Although it works, I am not a big fan of IFERROR() as it has a potential to mask any other errors that may be important to know. I take it as there is no other way but to use IFERROR()?

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,133

    Re: SUMIFS with a formula

    You could try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    which will need array entry for xl2010

  8. #8
    Registered User
    Join Date
    07-18-2017
    Location
    UK
    MS-Off Ver
    2010
    Posts
    21

    Re: SUMIFS with a formula

    Awesome. Thank you.

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,133

    Re: SUMIFS with a formula

    Glad to help & 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] Sumifs formula without using sumifs....
    By blockbyblock in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2017, 10:45 AM
  2. Replies: 3
    Last Post: 01-24-2017, 08:08 AM
  3. Replies: 10
    Last Post: 12-16-2015, 03:16 PM
  4. [SOLVED] Sumifs formula giving #value even though each part individually works as a sum formula
    By carrach in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-08-2015, 10:34 AM
  5. Replies: 2
    Last Post: 05-22-2014, 04:14 AM
  6. [SOLVED] Either/Or within a SUMIFS formula (part of a weighted average formula)
    By macrorookie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2014, 09:56 PM
  7. [SOLVED] Sumifs, problem with the formula: =sumifs(c10:c200,<=today(),0)
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 04:26 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