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-ignoreadding; 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>[TABLE="width: 261"]
<!--StartFragment--> <colgroup><col width="87" span="3" style="width:65pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 87"]Updated Job Code[/TD]
[TD="class: xl68, width: 87"]Average Salary[/TD]
[TD="class: xl68, width: 87"]Type[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]42[/TD]
[TD="class: xl67, align: right"]$60,000[/TD]
[TD="class: xl68"]Single site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]42[/TD]
[TD="class: xl67, align: right"]$26,000[/TD]
[TD="class: xl68"]Single site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]42[/TD]
[TD="class: xl67, align: right"]$26,500[/TD]
[TD="class: xl68"]Multi site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl67, align: right"]$62,000[/TD]
[TD="class: xl68"]Single site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]49[/TD]
[TD="class: xl67, align: right"]$40,000[/TD]
[TD="class: xl68"]Multi site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]42[/TD]
[TD="class: xl67, align: right"]$45,000[/TD]
[TD="class: xl68"]Multi site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]21[/TD]
[TD="class: xl67, align: right"]$33,000[/TD]
[TD="class: xl68"]Single site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]43[/TD]
[TD="class: xl67, align: right"]$30,000[/TD]
[TD="class: xl68"]Multi site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]42[/TD]
[TD="class: xl67, align: right"]$51,500[/TD]
[TD="class: xl68"]Single site[/TD]
[/TR]
<!--EndFragment--></tbody>[/TABLE]
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!
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-ignoreadding; 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>[TABLE="width: 261"]
<!--StartFragment--> <colgroup><col width="87" span="3" style="width:65pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 87"]Updated Job Code[/TD]
[TD="class: xl68, width: 87"]Average Salary[/TD]
[TD="class: xl68, width: 87"]Type[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]42[/TD]
[TD="class: xl67, align: right"]$60,000[/TD]
[TD="class: xl68"]Single site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]42[/TD]
[TD="class: xl67, align: right"]$26,000[/TD]
[TD="class: xl68"]Single site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]42[/TD]
[TD="class: xl67, align: right"]$26,500[/TD]
[TD="class: xl68"]Multi site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl67, align: right"]$62,000[/TD]
[TD="class: xl68"]Single site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]49[/TD]
[TD="class: xl67, align: right"]$40,000[/TD]
[TD="class: xl68"]Multi site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]42[/TD]
[TD="class: xl67, align: right"]$45,000[/TD]
[TD="class: xl68"]Multi site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]21[/TD]
[TD="class: xl67, align: right"]$33,000[/TD]
[TD="class: xl68"]Single site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]43[/TD]
[TD="class: xl67, align: right"]$30,000[/TD]
[TD="class: xl68"]Multi site[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]42[/TD]
[TD="class: xl67, align: right"]$51,500[/TD]
[TD="class: xl68"]Single site[/TD]
[/TR]
<!--EndFragment--></tbody>[/TABLE]
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!