+ Reply to Thread
Results 1 to 6 of 6

SUMPRODUCT problem combined with filtering

Hybrid View

  1. #1
    Registered User
    Join Date
    03-18-2009
    Location
    Solihull
    MS-Off Ver
    Excel 2003
    Posts
    53

    SUMPRODUCT problem combined with filtering

    Hello there
    i have slight issue with a sum product calculation enclosed - issue is I need to filter on column B ( RANGE ) and have sumproduct calaculation apply to the filter only
    is this possible ?

    many thanks
    peterSumProductIssue.xls

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

    Re: SUMPRODUCT problem combined with filtering

    Same question asked here
    though dont ask me how they came up with the solution

    http://www.pcreview.co.uk/forums/sum...-t1770074.html
    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
    Registered User
    Join Date
    03-18-2009
    Location
    Solihull
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: SUMPRODUCT problem combined with filtering

    blimey ..........which one am i using ? that only appears to apply to one column whereas I need to apply to two ?

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUMPRODUCT problem combined with filtering

    Hi,

    Does the attached help. I've added a small sub to work out which value is being filtered.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: SUMPRODUCT problem combined with filtering

    put this in cell D5:

    =SUMPRODUCT(SUBTOTAL(3,OFFSET($B$6,ROW($B$7:$B$18)-MIN(ROW($B$7:$B$18))+1,0))*$D$7:$D$18*$E$7:$E$18)
    whenever you filter on column B (Range) or column C (Item), the value in D5 will automatically change.
    Last edited by icestationzbra; 11-27-2012 at 12:02 PM.
    - 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 -

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: SUMPRODUCT problem combined with filtering

    Another little shorter version.

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(B6,ROW(B7:B18)-ROW(B6),,1)),D7:D18,E7:E18)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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