+ Reply to Thread
Results 1 to 6 of 6

SUMIFS, SUMPRODUCT with filters etc

  1. #1
    Registered User
    Join Date
    05-06-2013
    Location
    England
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    3

    Question SUMIFS, SUMPRODUCT with filters etc

    Hi All
    First post here, hope someone can help.
    I'm currently using SUMIFS formulas to analyse vat and other things from a list of costs.

    =SUMIFS(Net,BCCodes,$L14,VatCode,"S")

    All it does is adds up the Net value of all items matching L14 with a vat code "S".
    I have similar formulas that add up various combinations of data appearing in column L and returning values from different columns. All is working great, but....

    I would like be able to use a filter and get these results to update accordingly.
    I have seen from other posts that it can be done using SUMPRODUCT and SUBTOTAL but I can' get my head round it.

    Thanks in advance, if someone can help.

    Rob

  2. #2
    Registered User
    Join Date
    05-06-2013
    Location
    England
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    3

    Re: SUMIFS, SUMPRODUCT with filters etc

    Hi

    Here's a very cut down and altered version of what I need.
    There's only the one sheet as the text at the top should hopefully explain the requirement.

    Thanks

    Rob
    Attached Files Attached Files

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: SUMIFS, SUMPRODUCT with filters etc

    try this in O3:
    =SUMPRODUCT((SUBTOTAL(3,OFFSET($B$9,ROW($B$9:$B$13)-ROW($B$9),)))*(BCCodes=M3)*(VatCode="S"),Net)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMIFS, SUMPRODUCT with filters etc

    Here's another one...

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(F$9,ROW(F$9:F$13)-ROW(F$9),)),--(BCCodes=M3),--(VatCode="S"))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    05-06-2013
    Location
    England
    MS-Off Ver
    Excel 2007 & Excel 2010
    Posts
    3

    Thumbs up Re: SUMIFS, SUMPRODUCT with filters etc

    Both versions work fine.

    I should be able to adapt this to my real sheet now.

    Thanks

    Rob

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMIFS, SUMPRODUCT with filters etc

    You're welcome. We appreciate the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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