monthly median based on daily values

bloodybrit90

Board Regular
Joined
Jul 18, 2011
Messages
111
Hey guys,

I would like to find the monthly median price of daily transactions. For an average I can use a pivot table, but it does not have the median function build in. I have calculated the daily median value using an array formula.

=IF(A10>=1,MEDIAN(IF('textexport(1)'!$O:$O=Sheet3!B10,'textexport(1)'!$P:$P)),NA())
column A has the number of sales and column B has all the days. What is the best way for me to get the median of all the data per month?

Cheers
 
If C2 is text then although Excel will let you re-format it that doesn't have any actual effect. Can you re-enter the data in column C, what does it look like?
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
This is great. Assume you had several decades of data. How would you determine the median for a given month and given year?
 
Upvote 0
This is great. Assume you had several decades of data. How would you determine the median for a given month and given year?

Given...

Data: A2:B400, with A2:A400 housing true dates and B2:B400; and

E2: 1-Jan-2000 (a first day date of a month/year of interest)

F2, control+shift+enter, not just enter:

=MEDIAN(IF($A$2:$A$400-DAY($A$2:$A$400)+1=$E2,$B$2:$B$400))

A better option is a pivot table, grouped by month followed by year.
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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