Dear community,
I have a set of data where for a given visit I usually have a single entry for a given drug.
On occasions, there are multiple entries in rows, one after the other: I need to sum the doses. In addition, each entry may correspond to a number of days treated.
I have used to columns F and G to try and figure out when to start and when to stop summing: F=0, G=1 to start and F=1, G=1 to stop -- not sure if this is useful. Ideally, I would like to be able to filter these entries, something which I cannot do with this F/G solution. Next, I would need a formula to do the work from the start to the stop position (dose x days of treatment), with the solution placed in the row corresponding to the first entry (eg F=0, G=1).
I'm sure this is straight forward but I haven't been able to crack it or find a way to do so on the internet.
Here is the data file: http://sdrv.ms/Q4wYIX
Many thanks in advance,
I have a set of data where for a given visit I usually have a single entry for a given drug.
On occasions, there are multiple entries in rows, one after the other: I need to sum the doses. In addition, each entry may correspond to a number of days treated.
I have used to columns F and G to try and figure out when to start and when to stop summing: F=0, G=1 to start and F=1, G=1 to stop -- not sure if this is useful. Ideally, I would like to be able to filter these entries, something which I cannot do with this F/G solution. Next, I would need a formula to do the work from the start to the stop position (dose x days of treatment), with the solution placed in the row corresponding to the first entry (eg F=0, G=1).
I'm sure this is straight forward but I haven't been able to crack it or find a way to do so on the internet.
Here is the data file: http://sdrv.ms/Q4wYIX
Many thanks in advance,