简体   繁体   English

#value错误Mac Excel 2016数组公式

[英]#value error mac excel 2016 array formula

I'm getting a #value error in Excel 2016 on a mac. 我在Mac上的Excel 2016中遇到#value错误。

Formula: 式:

=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)))

Adding dummy data: 添加伪数据:

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

Desired outcome: calculate the median salary based on a set of conditions - job code = 42, school type = single site. 期望的结果:根据一组条件计算工资中位数-职务代码= 42,学校类型=单个地点。

When clicking ctrl+shift+enter, I get the value error. 单击ctrl + shift + enter时,出现值错误。 Thoughts? 有什么想法吗?

Using the following formula where A column has Job Type, B column has Average Salary and C column has Salary Type should work. 使用以下公式,其中A列具有“工作类型”,B列具有“平均工资”,C列具有“工资类型”应该起作用。

=MEDIAN(IF(A2:A10=42,IF(C2:C10="Single site",B2:B10,""),""))

Apply the formula using ctrl + shift + enter. 使用ctrl + shift + enter应用公式。

Also be sure that Average Salary is in a numeric format (number, currency etc.). 另外,请确保“平均工资”为数字格式(数字,货币等)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM