+ Reply to Thread
Results 1 to 4 of 4

sumifs and filtered data

  1. #1
    Registered User
    Join Date
    06-26-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    13

    sumifs and filtered data

    Hi everyone,

    I have an issues here with using a sumifs function. Working great apart from when I need to filter the data in the table its referencing. Does anyone know how to get this to work properly? I've attached a spreadsheet to show what I'm referring to.

    "Sheet1" has the sumifs and the data I'm looking to pull. "ALSchedule" contains the data.

    So for example. Currently I have a filter applied to "Type" column in "ALSchedule". In "Sheet1", cell b5, the amount that should have been showing at the moment should have been $102,965,001.92. But, the sumifs is picking up the filtered-out categories which you'll be able to see.

    If anyone can help me with a workaround that'd be great. Thank you!
    Attached Files Attached Files
    Last edited by finance14; 12-22-2011 at 11:29 AM. Reason: Solved!

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: sumifs and filtered data

    Try like this,

    B2,

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(ALSchedule!A$2,ROW(ALSchedule!$A$2:$A$2000)-ROW(ALSchedule!$A$2),,1)),--(ALSchedule!$D$2:$D$2000=$A5),--(ALSchedule!$G$2:$G$2000>=2))

    copy to C2.

    D2,

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(ALSchedule!A$2,ROW(ALSchedule!$A$2:$A$2000)-ROW(ALSchedule!$A$2),,1)),--(ALSchedule!$C$2:$C$2000=$A5),--(ALSchedule!$G$2:$G$2000>=2))

    Copy to E2, then all copy down.

    Do not use whole reference like A:A, use it like A1:A20000 or use a dynamic range.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: sumifs and filtered data

    Try:

    Please Login or Register  to view this content.
    copied down and across to next column...

    then in D2, adjust the D2:D2500 range to C2:C2500 and copy down and to next column
    Last edited by NBVC; 12-21-2011 at 04:04 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    06-26-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: sumifs and filtered data

    You guys, you never cease to impress me. Always humbled. A million thanks.

+ 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