I'm getting a #value error in Excel 2016 on a mac.
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.
When clicking ctrl+shift+enter, I get the value error. Thoughts?
Using the following formula where A column has Job Type, B column has Average Salary and C column has Salary Type should work.
=MEDIAN(IF(A2:A10=42,IF(C2:C10="Single site",B2:B10,""),""))
Apply the formula using ctrl + shift + enter.
Also be sure that Average Salary is in a numeric format (number, currency etc.).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.