Conditional subtotals
Hi
One way
=IF(A2=A3,"",SUMPRODUCT(--($A$2:$A$9=A2),$B$2:$B$9))
Change ranges to suit.
Incidentally, I make the total for 12/1/05 8000, not 7000.
Regards
Roger Govier
tx12345 wrote:
I have a subtotal question
Let's say I have this set of data
A..................B..........C
date_______amt_ sub
12/1/05____ 1000
12/1/05____ 2000
12/1/05____ 5000 7000
12/3/05____ 2000
12/3/05____ 9000 11000
12/6/05____ 1000 1000
12/7/05____ 4000
12/7/05____ 2000 6000
So we see a subtotal according to the date, where the total values in
chronological order are calculated to be
12/1/05 7000
12/3/05 11000
12/6/05 1000
12/7/05 6000
What sort of formula, then, do I put in column C that subtotals values
in B according to the date in A?
Many thanks
|