基于多个 IF 语句获取 SUM
Get the SUM based on multiple IF Statements
需要获取所有单元格的 SUM D2:K2
。对单元格值进行编码,在执行 求和运算时 .
最终要替换 11 by 1
、10 or 1 by 0.5
、0 by 0
低于尝试过的公式但不起作用:
=SUM(IF(D2:K2=11,1,IF(D2:K2=10,0.5,IF(D2:K2=1,0.5,0))))
需要帮助!
常规 COUNTIF() 函数的总和?
=COUNTIF(D2:K2,11)*1+COUNTIF(D2:K2,10)*0.5+COUNTIF(D2:K2,1)*0.5
需要获取所有单元格的 SUM D2:K2
。对单元格值进行编码,在执行 求和运算时 .
11 by 1
、10 or 1 by 0.5
、0 by 0
低于尝试过的公式但不起作用:
=SUM(IF(D2:K2=11,1,IF(D2:K2=10,0.5,IF(D2:K2=1,0.5,0))))
需要帮助!
常规 COUNTIF() 函数的总和?
=COUNTIF(D2:K2,11)*1+COUNTIF(D2:K2,10)*0.5+COUNTIF(D2:K2,1)*0.5