I was having to manually put a subtotal formula for large amount of data. I have a column where I want result of sumproduct of two columns at each change on voucher no (another column). I just want to copy the formula for the whole column rather than manually calculating it (no of rows will keep on varying). I wished I could have posted a sample data to explain the problem better. I also have doubts whether sumproduct is the right way i am approaching the problem.