+ Reply to Thread
Results 1 to 7 of 7

Testing Multiple Criteria to sum specific values in a range

  1. #1
    Registered User
    Join Date
    08-07-2015
    Location
    Florence, SC
    MS-Off Ver
    2010
    Posts
    3

    Question Testing Multiple Criteria to sum specific values in a range

    I am trying to put together a budget spreadsheet to track expenses and income. Both credits and debits are entered into the same range of cells ongoing, for each budget line item. NOTE: the type of transaction is NOT a column heading or a text string that is typed in; it is selected from a dop-down list of several choices (screenshot)

    screenshot1.jpg

    The only formula I have trouble with is how to filter out most types of credits but retain specific credits that offset spending (such as a refund, which is not truly "income") so as to avoid inaccurate totals. For example: a deposit of $200 (not counted), a debit of $75, a refund of $50, and another debit of $100. In this example total spending should be $125 (because of the refund). If "Refund" is filtered out along with "Dep Csh" when calculating "Total Debits" it would incorrectly show "Total Debits" as $175 when it should be $125. So far I have come up with a nested IF function using OR and AND, but I keep getting a #VALUE! error. (screenshot)

    Screenshot2.jpg

    Please help! I need to balance my budget tonight. I suppose a "Plan B" could be to create additional columns that deal separately with "Total Refunds" etc and then account for those totals in the "Total Debits" formula but I really want to avoid excessive space and formulas.
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,077

    Re: Testing Multiple Criteria to sum specific values in a range

    That formula looks like it should be an Array formula, use Ctrl-Shift to enter
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Testing Multiple Criteria to sum specific values in a range

    Does this do what you need?
    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  4. #4
    Registered User
    Join Date
    08-07-2015
    Location
    Florence, SC
    MS-Off Ver
    2010
    Posts
    3

    Re: Testing Multiple Criteria to sum specific values in a range

    nigelbloomy,

    that gets me farther than I was before because it does evaluate to $125 by appropriately accounting for "Refund". I need to see if the first SUMIF in your formula can be revised to search a2:d2 for any negative value, so that any kind of debit (bank fee, ACH withdrawal, debit, etc) would be totaled in the "Total Debits" column.

    Special-K,

    I must confess my ignorance on array formulas or how to use them. Please elaborate if you can.

  5. #5
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Testing Multiple Criteria to sum specific values in a range

    This should work to look at any negative value and then add in those that have the column header of "Refund."
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-07-2015
    Location
    Florence, SC
    MS-Off Ver
    2010
    Posts
    3

    Re: Testing Multiple Criteria to sum specific values in a range

    hey thanks! Funny I actually ended up solving with the same equation ^ sometime after your first reply. just couldn't log back on yet to tell you. So I guess if I need to specify additional criteria to include or exclude in the formula I could just tack on another SUMIF function in this formula. That makes sense. Have a good weekend, and thanks again!

  7. #7
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Testing Multiple Criteria to sum specific values in a range

    Glad you found something that worked.

+ 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: 2
    Last Post: 06-26-2015, 06:04 AM
  2. [SOLVED] Delete Row if Cell Contains Specific Values (Multiple Criteria)
    By efarkouh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-01-2014, 11:38 AM
  3. Replies: 2
    Last Post: 04-23-2014, 04:22 AM
  4. Llookup the 3 values to get 1 value ( with specific range criteria )
    By amarbhagwat in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-16-2013, 05:00 AM
  5. IF testing for match with range of values.
    By rganz in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-12-2010, 02:45 PM
  6. HELP, PLEASE - Testing Multiple Values
    By wingale in forum Excel General
    Replies: 4
    Last Post: 04-14-2006, 05:52 PM
  7. [SOLVED] Testing to see if a specific name has been already assigned to cellor range.
    By windsurferLA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-06-2005, 01:06 PM

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