View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default Conditional subtotals

Assuming that A1:B9 houses the data of interest and the dates from A2 on
are in ascending order...

In C2 enter & copy down:

=IF((A2<"")*(A2<A3),SUMIF($A$2:$A$9,A2,$B$2:$B$9 ),"")

If you are on Excel 2003, make of A1:C9 a list by means of
Data|List|Create List so that with every new entry the formula gets
copied down automatically.

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