View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ShaneDevenshire ShaneDevenshire is offline
external usenet poster
 
Posts: 2,344
Default Another sub total question

Hi,

here is a different approach that does what you need:

=IF(A2=A3,"",SUMIF($A$2:$A$6,A2,$C$2:$C$6))

By the way, you could do what you want with a pivot table even as the data
change.


--
Thanks,
Shane Devenshire


" wrote:

Sorry if this has been covered but I have a spreadsheet with shift A B
or C in col A. A part number in col B and the quantity of each part in
col C. Each shift can do a number of part numbers in a shift and what
I need is a formula in D which will add the number of parts produced
for each shift e.g. subtotal col C for every change in Col A.

A B C D
Shift Part No Qty shift total
a 123 23
a 23 45
a 21 13 81
b 323 45
b 23 23 68

Hope this makes sense

Thanks in anticipation of a solution
Martin