Salary - medianifs and quartileifs in excel mac

akswartz85

New Member
Joined
Mar 31, 2010
Messages
49
Hi, I'm trying to calculate the median salary based on a set of conditions - job code = 42, school type = single site.

Sample data:

<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;}tr {mso-height-source:auto;}col {mso-width-source:auto;}br {mso-data-placement:same-cell;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:11.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri; mso-generic-font-family:auto; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}.xl65 {color:white; font-size:10.0pt; font-weight:700; background:#0070C0; mso-pattern:#0070C0 none;}.xl66 {font-size:10.0pt;}.xl67 {font-size:10.0pt; mso-number-format:"\0022$\0022\#\,\#\#0";}.xl68 {font-family:Calibri, sans-serif; mso-font-charset:0;}--></style>
Updated Job CodeAverage SalaryType
42$60,000Single site
42$26,000Single site
42$26,500Multi site
40$62,000Single site
49$40,000Multi site
42$45,000Multi site
21$33,000Single site
43$30,000Multi site
42$51,500Single site

<!--StartFragment--> <colgroup><col width="87" span="3" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>


How do I do that? I've been playing with median(if()) combinations but can't seem to get it.

I also have the same question but with quartiles...

Thanks!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Try:
These are array formulas that must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABCDEFG
1Updated Job CodeAverage SalaryTypeUpdated Job CodeTypeMedian
242$60,000Single site42Single site$51,500
342$26,000Single site
442$26,500Multi site1st Quartile
540$62,000Single site$ 38,750.00
649$40,000Multi site
742$45,000Multi site
821$33,000Single site
943$30,000Multi site
1042$51,500Single site
Sheet
 
Upvote 0
Thanks. I'm on a mac - excel 2016 - and I can't get it to calculate the array. Is there a different shortcut?
 
Last edited:
Upvote 0
Not sure on the MAC, but I think it might be COMMAND-SHIFT-RETURN. You will first need to put the formula in edit mode (which is function key F2 on a PC may be the same on mac??).
 
Upvote 0
I also, assumed that the Job Codes were numeric. If the job codes are text then you will need to enter cell E2 (in the example) as text.
 
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,284
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top