+ Reply to Thread
Results 1 to 2 of 2

combined Sumif and Subtotal formula

  1. #1
    Registered User
    Join Date
    11-20-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    16

    combined Sumif and Subtotal formula

    Is there a way to add another variable in this statement?

    Column L is the value to add, Column A is where the data is that matches CV$2. I have another column that has "YES" and blanks so I only want to sum those items that say "YES". Is that possible?


    =SUMPRODUCT(SUBTOTAL(9,OFFSET('Billings Data'!$L$2,ROW('Billings Data'!$L:$L)-ROW('Billings Data'!$L$2),0)),('Billings Data'!$A:$A=CV$2)+0)

  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,936

    Re: combined Sumif and Subtotal formula

    The way I would probably handle this, would be to create a helper column to test for each of those criteria, and then pull in the value if they are all met - then sum that column. Helpers can be hidden if needed.
    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. How to use Subtotal function within in a COUNTIF & SUMIF formula
    By lindafinlay in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-24-2013, 02:27 AM
  2. [SOLVED] Sumif formula in a subtotal
    By Jexcel2012 in forum Excel General
    Replies: 11
    Last Post: 06-25-2012, 06:40 PM
  3. Replies: 2
    Last Post: 06-12-2012, 10:18 PM
  4. Formula : SUMIF & SUBTOTAL after filter?
    By Overdoit in forum Excel General
    Replies: 3
    Last Post: 07-09-2008, 03:22 PM
  5. Replies: 1
    Last Post: 04-22-2005, 12:06 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