Thread: Totalling rows
View Single Post
  #9   Report Post  
Max
 
Posts: n/a
Default

Just another option to try ..

Assume the depts are in col A.
with B1:M1 containing dates*: Jul-04, Aug-04,.. Jun-05
*"1st of month" dates in "mmm-yy" format filled across,
i.e. entered in B1: Jul-04 (Actual value is: 01-Jul-2004),
B1 filled across to M1

and with "Total" in N1

Put in N2:

=SUM(INDIRECT(CHAR(MATCH(DATE(YEAR(TODAY()),MONTH( TODAY()),1),$B$1:$M$1,0)+6
6)&ROW()&":M"&ROW()))

Copy down
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Muruk" wrote in message
...
I have a table of 12 columns of numbers reflecting the expenses of depts

for
the year. e.g.

Jul Aug ...........May Jun Total
Dept 1 100 120 130 90 1230
Dept 2 200 202 240 195 2600
Dept 3

At the end of each month I wish to have the total reflect only the months
remaining to the end of the year. e.g. at the end of Aug, the formula in

the
total colum would only add from Sept to Jun.

Can anyone assist with the formula I need to use??

Thank You