我在Mac上的Excel 2016中遇到#value错误。
式:
=MEDIAN(IF('Instructional RAW'!$C:$C,'Lead Teacher (42)'!$E$12,IF('Instructional RAW'!$G:$G,'Lead Teacher (42)'!E$28,'Instructional RAW'!$R:$R)))
添加伪数据:
Job Code Average Salary Type
42 $60,000 Single site
42 $26,000 Single site
42 $26,500 Multi site
40 $62,000 Single site
49 $40,000 Multi site
42 $45,000 Multi site
21 $33,000 Single site
43 $30,000 Multi site
42 $51,500 Single site
期望的结果:根据一组条件计算工资中位数-职务代码= 42,学校类型=单个地点。
单击ctrl + shift + enter时,出现值错误。有什么想法吗?
使用以下公式,其中A列具有“工作类型”,B列具有“平均工资”,C列具有“工资类型”应该起作用。
=MEDIAN(IF(A2:A10=42,IF(C2:C10="Single site",B2:B10,""),""))
使用ctrl + shift + enter应用公式。
另外,请确保“平均工资”为数字格式(数字,货币等)。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句