Median with multiple conditions and date

Goddess

Board Regular
Joined
Dec 3, 2015
Messages
116
Office Version
  1. 2021
Platform
  1. Windows
Hi,

I need to find the median based on 2 conditions, one of which is the year of the date. A1:C15 is the table and the result I need is in H1:J5. Would be great if there's a formula without entered as array, but if need to, appreciate the help too.

Book1
ABCDEFGHIJK
1DateDescriptionAmount2007Grape24325
218/6/2015Apple02015Apple0
329/7/2015Orange02015Orange0
412/8/2015Banana02015Berry6863
522/1/2007Grape02015Banana1769.82
621/12/2015Banana250.2
71/12/2015Berry375.3
84/10/2007Grape486.5
912/8/2015Banana556
1012/8/2015Banana792.3
111/12/2015Berry997.3
1212/8/2015Banana2747.34
1312/8/2015Banana3239.4
147/9/2015Banana3712
1512/8/2015Banana6395
16
17
Sheet1


Thanks!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Is this what you want?

25 01 25.xlsm
ABCDHIJ
1DateDescriptionAmount2007Grape243.25
218/06/2015Apple02015Apple0
329/07/2015Orange02015Orange0
412/08/2015Banana02015Berry686.3
522/01/2007Grape02015Banana1769.82
621/12/2015Banana250.2
71/12/2015Berry375.3
84/10/2007Grape486.5
912/08/2015Banana556
1012/08/2015Banana792.3
111/12/2015Berry997.3
1212/08/2015Banana2747.34
1312/08/2015Banana3239.4
147/09/2015Banana3712
1512/08/2015Banana6395
16
Median
Cell Formulas
RangeFormula
J1:J5J1=MEDIAN(FILTER(C$2:C$15,(YEAR(A$2:A$15)=H1)*(B$2:B$15=I1)))
 
Upvote 0
Solution

Forum statistics

Threads
1,226,064
Messages
6,188,677
Members
453,490
Latest member
amru

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