Good morning. It's my Birthday and I've had to come in to work!!!! Brain's a bit fuzzy!
Anyway. Is it possible to obtain the Median, Percentile, MAX based on criteria from another column? Basically, every month we will be adding figures to a worksheet and will need to calculated Year To Date figures. The first column will be patients who have either been "Admitted" or "Non Admitted" following a visit to our Accident & Emergency Department (ED). The second column will be the length of time each patient spent in the Department. What I would like to be able to do is create a formula for each measure where currently this is amended monthly when new data are added, i.e.:
So, is there any way to make the range dynamic like I could if I were just doing a total, e.g.
Many thanks,
D€$
Anyway. Is it possible to obtain the Median, Percentile, MAX based on criteria from another column? Basically, every month we will be adding figures to a worksheet and will need to calculated Year To Date figures. The first column will be patients who have either been "Admitted" or "Non Admitted" following a visit to our Accident & Emergency Department (ED). The second column will be the length of time each patient spent in the Department. What I would like to be able to do is create a formula for each measure where currently this is amended monthly when new data are added, i.e.:
=PERCENTILE(B5:B1467,0.95) is the range of Admitted patients (so far)
=PERCENTILE(B1468:B5402,0.95) is the range of Non Admitted patients (so far)
So, is there any way to make the range dynamic like I could if I were just doing a total, e.g.
=SUMPRODUCT((A5:A50000="Admitted")*(B5:B50000))
=SUMPRODUCT((A5:A50000="Non Admitted")*(B5:B50000))
Many thanks,
D€$