I have 30 years of time series data for which I would like to obtain approximate median dates for. The data looks like this:
[TABLE="width: 195"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Live[/TD]
[/TR]
[TR]
[TD="align: right"]12/27/1976[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]1/9/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]2/22/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]2/23/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]2/24/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]2/27/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]3/1/1977[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]3/2/1977[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]3/3/1977[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD="align: right"]3/6/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]3/7/1977[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="align: right"]3/8/1977[/TD]
[TD="align: right"]24[/TD]
[/TR]
[TR]
[TD="align: right"]3/9/1977[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]3/10/1977[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]3/11/1977[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]3/13/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]3/21/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]3/23/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]4/12/1977[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]4/13/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]4/22/1977[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="align: right"]4/23/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
Looking for an elegant way in Excel to return the date once the median (cumulative total for live)/2 is reached. I have tried using dget but since more than one record exceeds the median threshold, this returns an error. Does anyone have a suggestion for achieving this?
[TABLE="width: 195"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Live[/TD]
[/TR]
[TR]
[TD="align: right"]12/27/1976[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]1/9/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]2/22/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]2/23/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]2/24/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]2/27/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]3/1/1977[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]3/2/1977[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]3/3/1977[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD="align: right"]3/6/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]3/7/1977[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="align: right"]3/8/1977[/TD]
[TD="align: right"]24[/TD]
[/TR]
[TR]
[TD="align: right"]3/9/1977[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]3/10/1977[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]3/11/1977[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]3/13/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]3/21/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]3/23/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]4/12/1977[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]4/13/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]4/22/1977[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="align: right"]4/23/1977[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
Looking for an elegant way in Excel to return the date once the median (cumulative total for live)/2 is reached. I have tried using dget but since more than one record exceeds the median threshold, this returns an error. Does anyone have a suggestion for achieving this?