Need Help with SUM function

S

spackler

I have a software program that kicks out Excel reports with data fro
its fields and I need to add the cells up. I can put the =SUM(A1:D1
formula in a field within the software so it adds up A1 through D1 n
problem but the simple =SUM(A1:D1) then shows up in row 2. So where i
should be =SUM(A2:D2) Excel is taking the literall text in the field s
it is not working beyond row 1. I get =SUM(A1:D1) in all rows.

My thinking is to come up with a formula that uses the ROW() functio
to tell the next cell down to use the proper formula so I'm tryin
=SUM(A(ROW()):D(ROW())) and it is not working. I think I'm on the righ
track but don't quite know the syntacs.

Suggestions?

Thanks
 
S

spackler

Great. Awesome. Perfect. Thanks Vasant!

Now I'm trying to do the same thing with =I2-P2 and =D2/A2 and havin
no luck adapting what you gave me above for the SUM.

For the subtraction I was trying :
=SUM(INDIRECT("I"&ROW()&"-P"&ROW()))

or

=(INDIRECT("I"&ROW()&"-P"&ROW())) with no luck.

I have not tried the division yet as I realize my functio
understanding is lacking...

Suggestions?

Thanks
 
V

Vasant Nanavati

INDIRECT is not really intuitive (at least not to me). It usually takes me a
bit of trial=and-error.

Try:

=INDIRECT("I"&ROW())-INDIRECT("P"&ROW())

and:

=INDIRECT("D"&ROW())/INDIRECT("A"&ROW())
 
Top