Merge cells and autofill

New Contributor



I'm making a template that calaculate % dissolved of drug during analysis of its content in tablets.


The picture above shows analysis of 3 tablets (3 cups) that was sampled on intervals (10 minutes, 15 minutes,.....etc).


What I want is a code that automatically create the above cells by just specifying number of intervals and number of cups analyzed. So to apply this on the example above, number of intervals would be 6 and number of cups would be 3.


Also under the column diss% I want a code that drag the first equation to the last column.