Median, Mode, Maxim, & minimum with If & multiple criteria

mmunoz20

New Member
Joined
Aug 11, 2017
Messages
6
Hi.

I have a question regarding how to find the median, mode, maximum, minimum & maximum with multiple criteria. I understand that I have to use the if function, but I am not sure how to go about it. I attempted to find the median, but I got an error (#value!). Here is the formula that I wrote:

=MEDIAN(IF(Database!$C$2:$C$10000,">="&B3, Database!$C$2:$C$10000"<="&C3), Database!$N$2:$N$10000)

Context: I am trying to find the median for a set of numbers that fall in a particular date range (>= B3 & <=C3).

Any suggestions are welcomed & appreciated!!

Thanks,
Maria
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
re: Median, Mode, Maxim, & minimum with If & multiple criteria

This would be an array formula that must be entered with CTRL-SHIFT-ENTER (not just ENTER).
Also, syntax should be something like below.
Excel Workbook
ABCDEFN
1
24/5/20171
34/7/20174/6/20175.52
45/4/20174/7/20173
54/8/20174
65/1/20175
75/2/20176
85/3/20177
95/4/20178
105/5/20179
116/1/201710
126/2/201711
136/3/201712
146/4/201713
156/5/201714
166/6/201715
176/7/201716
Sheet
 
Upvote 0
re: Median, Mode, Maxim, & minimum with If & multiple criteria

Thank you!




This would be an array formula that must be entered with CTRL-SHIFT-ENTER (not just ENTER).
Also, syntax should be something like below.

ABCDEFN
1
2 4/5/2017 1
3 4/7/20174/6/2017 5.5 2
4 5/4/20174/7/2017 3
5 4/8/2017 4
6 5/1/2017 5
7 5/2/2017 6
8 5/3/2017 7
9 5/4/2017 8
10 5/5/2017 9
11 6/1/2017 10
12 6/2/2017 11
13 6/3/2017 12
14 6/4/2017 13
15 6/5/2017 14
16 6/6/2017 15
17 6/7/2017 16

<colgroup><col style="width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:35px;"><col style="width:64px;"><col style="width:25px;"><col style="width:53px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
E3{=MEDIAN(IF($C$2:$C$17>B3,IF($C$2:$C$17<b4,$n$2:$n$17)))}< td=""></b4,$n$2:$n$17)))}<>

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0

Forum statistics

Threads
1,215,759
Messages
6,126,728
Members
449,332
Latest member
nokoloina

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