View Single Post
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
in C2 enter
=IF(A2="Total",SUMIF($A:$A,A1,$B:$B),"")
and copy down

"hbpvs" wrote:

I want to add an auto sum in a formula that adjusts the sum-range every time
the name in the left column changes. For example cells A1-A10 shows product
A, in cell A11 Total, than cells A12-A16 product B. Column B shows the sold
products but the row range for those subtotals differs frequently. So I'm
looking for something like a formula in cell C10 If(a10="Total",
autosum(b1:b9),b10), this autosum-range automatically to be adjusted. I know
how to do this in VB but can I also put this in a formula.