jbolduc123
New Member
- Joined
- Mar 22, 2018
- Messages
- 3
Hi,
I hope this makes sense..... I'm trying to calculate the median of salaries that meet a set of criteria. I've looked at other threads, and tried the {=Median(if(A1:A16=criteria,B1:B16))}. This formula works, but it's not returning the median I'm looking for.
For example, I want to find the separate Median Base Salary of all positions titled Position #1 , all the positions titled Position #2 , Position #3 , etc. (in the table below), without having to manually select the range in column B. Any and all help is greatly appreciated.
[TABLE="width: 255"]
<tbody>[TR]
[TD][ColumnA]
Position #[/TD]
[TD][ColumnB]
Base Salary[/TD]
[TD][ColumnC]
Median Salary[/TD]
[/TR]
[TR]
[TD]Position #1 [/TD]
[TD] $204,750.00[/TD]
[TD] $204,750.00[/TD]
[/TR]
[TR]
[TD]Position #2 [/TD]
[TD] $155,000.00[/TD]
[TD] $155,112.00[/TD]
[/TR]
[TR]
[TD]Position #2 [/TD]
[TD] $155,224.00[/TD]
[TD] $155,112.00[/TD]
[/TR]
[TR]
[TD]Position #3 [/TD]
[TD] $208,464.00[/TD]
[TD] $208,464.00[/TD]
[/TR]
[TR]
[TD]Position #4[/TD]
[TD] $175,000.00[/TD]
[TD] $189,037.50[/TD]
[/TR]
[TR]
[TD]Position #4[/TD]
[TD] $203,075.00[/TD]
[TD] $189,037.50[/TD]
[/TR]
[TR]
[TD]Position #5[/TD]
[TD] $195,209.00[/TD]
[TD] $199,142.00[/TD]
[/TR]
[TR]
[TD]Position #5[/TD]
[TD] $203,075.00[/TD]
[TD] $199,142.00[/TD]
[/TR]
[TR]
[TD]Position #6[/TD]
[TD] $180,000.00[/TD]
[TD] $203,075.00[/TD]
[/TR]
[TR]
[TD]Position #6[/TD]
[TD] $203,075.00[/TD]
[TD] $203,075.00[/TD]
[/TR]
[TR]
[TD]Position #6[/TD]
[TD] $231,750.00[/TD]
[TD] $203,075.00[/TD]
[/TR]
[TR]
[TD]Position #7[/TD]
[TD] $165,661.00[/TD]
[TD] $203,075.00[/TD]
[/TR]
[TR]
[TD]Position #7[/TD]
[TD] $203,075.00[/TD]
[TD] $203,075.00[/TD]
[/TR]
[TR]
[TD]Position #7[/TD]
[TD] $230,000.00[/TD]
[TD] $203,075.00[/TD]
[/TR]
</tbody>[/TABLE]
I hope this makes sense..... I'm trying to calculate the median of salaries that meet a set of criteria. I've looked at other threads, and tried the {=Median(if(A1:A16=criteria,B1:B16))}. This formula works, but it's not returning the median I'm looking for.
For example, I want to find the separate Median Base Salary of all positions titled Position #1 , all the positions titled Position #2 , Position #3 , etc. (in the table below), without having to manually select the range in column B. Any and all help is greatly appreciated.
[TABLE="width: 255"]
<tbody>[TR]
[TD][ColumnA]
Position #[/TD]
[TD][ColumnB]
Base Salary[/TD]
[TD][ColumnC]
Median Salary[/TD]
[/TR]
[TR]
[TD]Position #1 [/TD]
[TD] $204,750.00[/TD]
[TD] $204,750.00[/TD]
[/TR]
[TR]
[TD]Position #2 [/TD]
[TD] $155,000.00[/TD]
[TD] $155,112.00[/TD]
[/TR]
[TR]
[TD]Position #2 [/TD]
[TD] $155,224.00[/TD]
[TD] $155,112.00[/TD]
[/TR]
[TR]
[TD]Position #3 [/TD]
[TD] $208,464.00[/TD]
[TD] $208,464.00[/TD]
[/TR]
[TR]
[TD]Position #4[/TD]
[TD] $175,000.00[/TD]
[TD] $189,037.50[/TD]
[/TR]
[TR]
[TD]Position #4[/TD]
[TD] $203,075.00[/TD]
[TD] $189,037.50[/TD]
[/TR]
[TR]
[TD]Position #5[/TD]
[TD] $195,209.00[/TD]
[TD] $199,142.00[/TD]
[/TR]
[TR]
[TD]Position #5[/TD]
[TD] $203,075.00[/TD]
[TD] $199,142.00[/TD]
[/TR]
[TR]
[TD]Position #6[/TD]
[TD] $180,000.00[/TD]
[TD] $203,075.00[/TD]
[/TR]
[TR]
[TD]Position #6[/TD]
[TD] $203,075.00[/TD]
[TD] $203,075.00[/TD]
[/TR]
[TR]
[TD]Position #6[/TD]
[TD] $231,750.00[/TD]
[TD] $203,075.00[/TD]
[/TR]
[TR]
[TD]Position #7[/TD]
[TD] $165,661.00[/TD]
[TD] $203,075.00[/TD]
[/TR]
[TR]
[TD]Position #7[/TD]
[TD] $203,075.00[/TD]
[TD] $203,075.00[/TD]
[/TR]
[TR]
[TD]Position #7[/TD]
[TD] $230,000.00[/TD]
[TD] $203,075.00[/TD]
[/TR]
</tbody>[/TABLE]