+ Reply to Thread
Results 1 to 2 of 2

Thread: Writing SUMIF formula that reacts to filters

  1. #1
    Registered User
    Join Date
    07-07-2011
    Location
    Oviedo, FL
    MS-Off Ver
    Excel 2007
    Posts
    1

    Writing SUMIF formula that reacts to filters

    I'm trying to write a SUMIF formula that permits filtering. Can anyone help with this?

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,052

    Re: Writing SUMIF formula that reacts to filters

    If you want to sum B2:B100 when the corresponding value in A2:A100 = "x", only considering visible rows after filtering, then you can use a formula like this

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(A2,ROW(A2:A100)-ROW(A2),0)),(B2:B100="x")+0)
    Audere est facere

+ 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.2.0