Median of two different sets of data

tony0682

Board Regular
Joined
May 19, 2005
Messages
164
Looking for help trying to calculate the median of both sets of numbers in B18. The formula should only include numbers with a positive value in column C. Any help is appreciated.



Book1
ABC
1201
215-2
382
4163
566
612-1
7Set A Median13.5
8
9139
10204
11126
12153
1392
1444
1511-5
16Set B Median11.5
17
18Median of Both Sets
Sheet1
Cell Formulas
RangeFormula
B7=MEDIAN(B1:B6)
B16=MEDIAN(B10:B15)
 
Last edited:

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
A​
B​
C​
D​
1​
20​
1​
2​
15​
-2​
3​
8​
2​
4​
16​
3​
5​
6​
6​
6​
12​
-1​
7​
Set A Median
12​
B7: {=MEDIAN(IF(C1:C6 > 0,B1:B6))}
8​
9​
13​
9​
10​
20​
4​
11​
12​
6​
12​
15​
3​
13​
9​
2​
14​
4​
4​
15​
11​
-5​
16​
Set B Median
12.5​
B16: {=MEDIAN(IF(C9:C15 > 0,B9:B15))}
17​
18​
Median of Both Sets
12.5​
B18: {=MEDIAN(IF(C1:C6 > 0, B1:B6), IF(C9:C15 > 0, B9:B15))}
 
Upvote 0

Forum statistics

Threads
1,216,036
Messages
6,128,432
Members
449,452
Latest member
Chris87

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