+ Reply to Thread
Results 1 to 6 of 6

Combining SUMIF and Subtotal for a single column of numbers

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    81

    Combining SUMIF and Subtotal for a single column of numbers

    I have a column of numbers with several subtotals. At the bottom of the column I want to use a SUMIF to total the column but ignore the Subtotals and all negative numbers. I attached an example file with the desired result.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Combining SUMIF and Subtotal for a single column of numbers

    Try
    =SUMIFS(B1:B14,B1:B14,">0",A1:A14,"<>Ttl")

  3. #3
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Combining SUMIF and Subtotal for a single column of numbers

    Alternative solution
    =SUBTOTAL(9,B1:B14)-SUMIF(B1:B14,"<0")
    Appreciate the help? CLICK *

  4. #4
    Registered User
    Join Date
    04-23-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Combining SUMIF and Subtotal for a single column of numbers

    Jonmo1 and AZ-XL. Both of your solutions work. I went with AZ-XLs because the text in column A is unreliable. Thanks to both of you!

  5. #5
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Combining SUMIF and Subtotal for a single column of numbers

    You are welcome. Thanx for feedback

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Combining SUMIF and Subtotal for a single column of numbers

    Quote Originally Posted by AZ-XL View Post
    =SUBTOTAL(9,B1:B14)-SUMIF(B1:B14,"<0")
    This may not work if any of the subtotals are negative
    Audere est facere

+ 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] Combining numbers in a column into one cell
    By labogola in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-22-2014, 06:14 AM
  2. [SOLVED] Combining multiple columns of data into single column
    By dsklein85 in forum Excel General
    Replies: 6
    Last Post: 10-30-2012, 11:18 PM
  3. Replies: 3
    Last Post: 03-28-2012, 05:59 PM
  4. Combining sumif, subtotal with filters?
    By November in forum Excel General
    Replies: 30
    Last Post: 11-04-2006, 03:27 PM
  5. Combining SUMIF and SUBTOTAL functions
    By [email protected] in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-22-2005, 02:07 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