Running total by date

C

capt

I have to following table:

Date Amount Total
1-Jan-07 0:15 0:15
2-Jan-07 0:15 0:30
3-Jan-07 0:20 0:50
1-Feb-07 0:10 0:10
10-Feb-07 0:10 0:20
12-Feb-07 0:30 0:50
2-Mar-07 1:00 1:00
20-Mar-07 0:25 1:25
and so on

What formula do I use on column "C" so that it keeps a running total for
only that month (date being on column "A").

Regards
 
M

Mike H

Hi,

In C1 put the formula
=B1
Then in C2 put the formula
=IF(MONTH(A2)=MONTH(A1),B2+C1,B2)

Drag down as required

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top