Calculat the MEDIAN of the ratio of two set data....

jackyuen

New Member
Joined
Dec 4, 2014
Messages
6
A
B
ratio
17
14
1.21
6
11
0.55
5
16
0.31
5
18
0.28
3
0
#div/0!
12
17
0.71
0
12
-
12
8
1.5
3
10
0.3
4
2
2
median
0.55

<tbody>
</tbody>

i want to calculate the ratio of two set data..then find the median of that ratios.... if the ratio equal to #div/0!, will ignore it...

how to write a formula to find the median directly?
(instead of calculate the ratio first)


thank you all
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
How about this?
Code:
=MEDIAN(IFERROR(A2:A11/B2:B11,0))

To make this work, when entering the formula, hit Control + Shift + Enter to make it an array formula.
 
Upvote 0
How about this?
Code:
=MEDIAN(IFERROR(A2:A11/B2:B11,0))

To make this work, when entering the formula, hit Control + Shift + Enter to make it an array formula.

Hi....i checked ur method...
but the correct Median=0.55...

can u help again?
 
Upvote 0
If you want the median without calculating the ratio's explicitly, control+shift+enter, not just enter:

=MEDIAN(IF(ISNUMBER(A2:A11/B2:B11),A2:A11/B2:B11))
 
Upvote 0

Forum statistics

Threads
1,216,149
Messages
6,129,149
Members
449,488
Latest member
qh017

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