如图所示
sum(D5[!0]{D2!="分成物业(村销售给我司)"})
条件汇总:https://help.fanruan.com/finereport/doc-view-345.html?source=1