+ Reply to Thread
Results 1 to 4 of 4

How to add other formula inside the SUMIFS Function

  1. #1
    Registered User
    Join Date
    09-19-2019
    Location
    United States
    MS-Off Ver
    365
    Posts
    26

    How to add other formula inside the SUMIFS Function

    Hello Everyone,

    I want to use SUMIFS function with a relation of Sheet1 and Sheet2. My aim will sum project estimations in sheet1 if project number is 1, gender is M. But, after these criteria are met, Name C and D have zero estimation in sheet 1. If this problem occurs, Name C and D data come from sheet2 and will be added to the SUMIFS function. Sheet 2 excel file enlarges downward with new information but Sheet 1 stays the same. If someone would help me, I would be very thankful.
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: How to add other formula inside the SUMIFS Function

    one way (if I'm understanding your request) is this...
    =IF(SUMIFS(Sheet1!$D:$D,Sheet1!$A:$A,Sheet2!A2,Sheet1!$B:$B,Sheet2!B2,Sheet1!$C:$C,Sheet2!C2)=0,SUMIFS(Sheet2!D:D,Sheet2!A:A,Sheet2!A2,Sheet2!B:B,B2,Sheet2!C:C,Sheet2!C2),SUMIFS(Sheet1!$D:$D,Sheet1!$A:$A,Sheet2!A2,Sheet1!$B:$B,Sheet2!B2,Sheet1!$C:$C,Sheet2!C2))
    or slightly differently if you are wanting 1 and M as the criteria...
    =IF(SUMIFS(Sheet1!$D:$D,Sheet1!$A:$A,Sheet2!A2,Sheet1!$B:$B,1,Sheet1!$C:$C,"M")=0,SUMIFS(Sheet2!D:D,Sheet2!A:A,Sheet2!A2,Sheet2!B:B,1,Sheet2!C:C,"M"),SUMIFS(Sheet1!$D:$D,Sheet1!$A:$A,Sheet2!A2,Sheet1!$B:$B,1,Sheet1!$C:$C,"M"))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    09-19-2019
    Location
    United States
    MS-Off Ver
    365
    Posts
    26

    Re: How to add other formula inside the SUMIFS Function

    Hi,

    Thank you for your effort. I tried to use but codes do not work as same as my idea. Maybe my explanation was not very detailed. In a nutshell, I would like to find the sum of 1 and M criteria. My aim is if in sheet 1, names meet 1 and M criteria and not zero, the sum of that certain name will come from sheet 1. But if in sheet 1, names meet 1 and M criteria and zero, the sum of that certain name will come from sheet 2. Totaly I only wanna see the total sum of 1 and M criteria. If it is possible to modify IF functions, I would be very thankful.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: How to add other formula inside the SUMIFS Function

    It may help if you manually include the results you want in the file so that we will have something to go by when proposing formulas/code.
    Either update the file in post #1 and notify us that updates have been made in a new post, or put an updated copy of the file in a new post so that we will get notified.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] IF formula inside SUMIFS?
    By ovehendrix in forum Excel General
    Replies: 9
    Last Post: 10-18-2023, 04:55 AM
  2. [SOLVED] Using TODAY function inside the SUMIFS function
    By taraberg_321 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-26-2019, 10:32 AM
  3. INDIRECT/ADDRESS inside LINEST function versus inside INTERCEPT
    By slny06 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2019, 08:51 AM
  4. [SOLVED] How to Use VLookup inside SUMIFS ?
    By admirable in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-13-2018, 03:55 PM
  5. Help nesting an OR function inside a SUMIFS function
    By wes228 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-21-2014, 06:22 PM
  6. Replies: 0
    Last Post: 01-19-2013, 01:35 PM
  7. Excel 2007 : SUM inside SUMIFS?
    By thart21 in forum Excel General
    Replies: 4
    Last Post: 09-30-2011, 01:58 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