+ Reply to Thread
Results 1 to 4 of 4

Sumproduct A Filtered Column

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Sumproduct A Filtered Column

    Hi all,

    The following function allows a count of days as breakdowns (column AL). If I want to change the first array so that instead of only MARCH entires being counted to entires filtered on column AK4:AK20000 what would be the correct sytax to use?

    Many thanks....

    =SUMPRODUCT(--($AK4:$AK20000="MARCH"),--($T4:$T20000="Provide Home Treatment"),--($AL4:$AL20000<=3))

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

    Try this [edited.....twice for accuracy]

    =SUMPRODUCT(SUBTOTAL(3,OFFSET($T4,ROW($T4:$T20000)-ROW($T4),0)),($T4:$T20000="Provide Home Treatment")*($AL4:$AL20000<=3))

    Will only count visible rows where your two conditions apply
    Last edited by daddylonglegs; 07-03-2008 at 08:49 AM.

  3. #3
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298
    hi steve-b,

    i dont know of anyway to sumproduct a filtered column, but you can use a drop down with the unique cells in it, you can also add extra dropdowns for the other varibles in the sumproduct.

    heres an example

    thansk reg
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107
    Thanks guy's.... I,ll try both ways and see what fits best. (I'll post the outcomes soon).

    Again the help is really appricated.

+ 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