Hi all,
I have my data in the following format (clip attached), 1000 rows.
It is about patients in treatment: they all started treatment on different dates noted in column Q and then either completed treatment in full (column S) or dropped early (column R).
I have a feeling that patients tend to drop earlier with time, i.e. back in 2021 they were more compliant with treatment and tended to stay longer.
Looking for a formula that will tell me an average treatment duration for patients discontinuing treatment early in each specific month. In other words, if in below clip there were 2 patients who discontinued treatment early within the month of Mar 22, I need the formula that does the following for Mar 22: ((R5-Q5)+(R9-Q9))/2
So, in this particular case, I'll see that for all those patients who discontinued during the month of Mar 22, their average duration of treatment before discontinuation was (318+315)/2=316.5 days
I need this for all months from Mar 21 till now (and onwards). Some months have zero patients dropping the treatment and other months have dozens.
Thank you
I have my data in the following format (clip attached), 1000 rows.
It is about patients in treatment: they all started treatment on different dates noted in column Q and then either completed treatment in full (column S) or dropped early (column R).
I have a feeling that patients tend to drop earlier with time, i.e. back in 2021 they were more compliant with treatment and tended to stay longer.
Looking for a formula that will tell me an average treatment duration for patients discontinuing treatment early in each specific month. In other words, if in below clip there were 2 patients who discontinued treatment early within the month of Mar 22, I need the formula that does the following for Mar 22: ((R5-Q5)+(R9-Q9))/2
So, in this particular case, I'll see that for all those patients who discontinued during the month of Mar 22, their average duration of treatment before discontinuation was (318+315)/2=316.5 days
I need this for all months from Mar 21 till now (and onwards). Some months have zero patients dropping the treatment and other months have dozens.
Thank you