SUMIF only filtered data

前端 未结 2 1327
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-23 06:25

I have an excel formula that sums a particular column of data.

SUMIF(Data!$E:$E,$E$89,Data!$F:$F)

I\'m looking to add a column G which I want t

相关标签:
2条回答
  • 2021-01-23 07:11

    I don't believe SUMIF etc have this functionality, however the SUBTOTAL function can do this. (Another option using SUMIFS which allows for multiple conditions)

    =SUBTOTAL(9,Data_Range_To_Sum)

    https://support.office.com/en-gb/article/SUBTOTAL-function-7b027003-f060-4ade-9040-e478765b9939?ui=en-US&rs=en-GB&ad=GB&fromAR=1

    0 讨论(0)
  • 2021-01-23 07:12

    The formula you want is taken and modified from this post; CountIf With Filtered Data

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(E2:E7,ROW($F$2:$F$7)-MIN(ROW($F$2:$F$7)),,1)),(E89=$F$2:$F$7)+0)
    

    0 讨论(0)
提交回复
热议问题