+ Reply to Thread
Results 1 to 2 of 2

Sum of both a) Sumif with multiple criteria + b) positive totals

  1. #1
    Registered User
    Join Date
    03-24-2019
    Location
    Sydney
    MS-Off Ver
    MC Office 2016
    Posts
    1

    Sum of both a) Sumif with multiple criteria + b) positive totals

    Hi,

    I'm trying to automate some formulas without using long formulas or name manager.

    My issue is I have 5x "criteria" (same column), but need to SUM only those criteria with an overall positive balance(balance sheet).

    I can't use this formula below because it doesn't consider the closing balance per criteria (assets/liability).
    =SUM(SUMIF(X:X,{"Criteria1","Criteria2","Criteria3","Criteria4","Criteria5"},P:P))

    My current solution:-
    =IF(SUMIF(X:X,"Criteria1",P:P)>0,SUMIF(X:X,"Criteria1",P:P),0) + IF(SUMIF(X:X,"Criteria2",P:P)>0,SUMIF(X:X,"Criteria2",P:P),0) + IF(SUMIF(X:X,"Criteria3",P:P)>0,SUMIF(X:X,"Criteria3",P:P),0) + IF(SUMIF(X:X,"Criteria4",P:P)>0,SUMIF(X:X,"Criteria4",P:P),0) + IF(SUMIF(X:X,"Criteria5",P:P)>0,SUMIF(X:X,"Criteria5",P:P),0).

    Any feedback would be appreciated!

    Cheers, T

  2. #2
    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,926

    Re: Sum of both a) Sumif with multiple criteria + b) positive totals

    Hi, welcome to the forum

    very 1st question...
    I'm trying to automate some formulas without using long formulas or name manager.
    Why??

    I will take a look at what you have, but it would probably be easier if you could upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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. Replies: 6
    Last Post: 11-03-2018, 04:50 AM
  2. SUMIF or SUMPRODUCT formula to SUM totals based on multiple criteria
    By relmasri in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-01-2016, 01:08 PM
  3. Need sub totals to be appear in multiple criteria pivot table
    By Anuru in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-18-2014, 02:42 PM
  4. SUMIF or SUMIF's formula with multiple criteria
    By jackiemariee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2013, 06:19 PM
  5. How can I get totals for multiple criteria?
    By mcoleman76 in forum Excel General
    Replies: 3
    Last Post: 02-07-2012, 04:55 PM
  6. Running totals based on multiple criteria
    By smraines in forum Excel General
    Replies: 1
    Last Post: 11-02-2010, 05:10 PM
  7. Calculating totals with multiple criteria
    By EI-ALEX in forum Excel General
    Replies: 3
    Last Post: 11-17-2009, 08:15 AM

Tags for this Thread

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