如何在求和之前将公式([DSW_INCLUDED] * Salary[InsuranceMultiplier]
)中以下两个数组的条件乘以向上舍入?
=ROUND(SUMPRODUCT(([DSW_INCLUDED])*(Salary[Year]=Salary[@Year])*(Salary[Month]=Salary[@Month])*(Salary[InsuranceSituation]="Insured")*([DSW_LISTNO]=[@[DSK_LISTNO]]),(Salary[InsuranceMultiplier]))
作为Salary[InsuranceMultiplier] < 1
答案 0 :(得分:0)
如何在求和之前将公式(...)中以下两个数组的条件乘以向上舍入?
也许将ROUND更改为ROUNDUP并将其带入循环计算而不是将结果四舍五入。
=SUMPRODUCT((Salary[Year]=Salary[@Year])*(Salary[Month]=Salary[@Month])*(Salary[InsuranceSituation]="Insured")*([DSW_LISTNO]=[@[DSK_LISTNO]]),
ROUNDUP([DSW_INCLUDED], 0), ROUNDUP(Salary[InsuranceMultiplier], 0))
'alternate
=SUMPRODUCT((Salary[Year]=Salary[@Year])*(Salary[Month]=Salary[@Month])*(Salary[InsuranceSituation]="Insured")*([DSW_LISTNO]=[@[DSK_LISTNO]]),
ROUNDUP([DSW_INCLUDED]*Salary[InsuranceMultiplier], 0))