+ Reply to Thread
Results 1 to 9 of 9

Function similar to SUMPRODUCT for Subtotal

  1. #1
    Forum Contributor
    Join Date
    10-16-2011
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    112

    Function similar to SUMPRODUCT for Subtotal

    I am using the following function below

    Please Login or Register  to view this content.
    So it does F2*G2*H2 to F35*G35*H35 and then adds the total

    But I don't know how to use the Subtotal function similar to sumproduct since I want to use the filters so I can get the updated total

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Function similar to SUMPRODUCT for Subtotal

    see if this thread helps, else holler back:

    http://www.excelforum.com/excel-form...html?p=2911998
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Forum Contributor
    Join Date
    10-16-2011
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Function similar to SUMPRODUCT for Subtotal

    Thanks for the help

    I tried to understand the process in the excel but I still couldn't get it to work.

    I'm trying to only use the function SUBTOTAL will let you sum "visible/non-filtered" data only.

  4. #4
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Function similar to SUMPRODUCT for Subtotal

    can you share a sample workbook? we can help you setup the formula.

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Function similar to SUMPRODUCT for Subtotal

    Try

    =SUMPRODUCT(F2:F35,G2:G35,H2:H35,SUBTOTAL(2,OFFSET(F2,ROW(F2:F35)-ROW(F2),)))

  6. #6
    Forum Contributor
    Join Date
    10-16-2011
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Function similar to SUMPRODUCT for Subtotal

    I am trying to get the sumproduct code to work for the last row in Column H. But I would like to use a function that uses the table range and when the filters are active only sums the one that shows
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Function similar to SUMPRODUCT for Subtotal

    Try

    =SUMPRODUCT([B],[C],[D],SUBTOTAL(2,OFFSET(Table14[[#Headers],[C]],ROW([C])-1,)))

  8. #8
    Registered User
    Join Date
    08-24-2012
    Location
    Schiedam, holland
    MS-Off Ver
    Excel 2003-2013
    Posts
    38

    Re: Function similar to SUMPRODUCT for Subtotal

    ExampleShadrack.xlsx
    Maybe, you needed something like the attached file. Please comment if your problem is solved.

  9. #9
    Registered User
    Join Date
    08-24-2012
    Location
    Schiedam, holland
    MS-Off Ver
    Excel 2003-2013
    Posts
    38

    Re: Function similar to SUMPRODUCT for Subtotal

    ExampleShadrack.xlsx

    Updated Function similar to Sumproduct

+ 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