Sum of Columns

E

Ekans

i have to variables,
Z1 = 1
Z2 = 4

that variables can change

that variables are to tell me wich numbers of columns i have to sum
so with that values i have to SUM from column A to column D

can any tell me the formula, i have to type ?

thks
 
M

Marcelo

=SUM(INDIRECT(CHAR(Z1+64)&ROW()):INDIRECT(CHAR(Z2+64)&ROW()))

hth

--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Ekans" escreveu:
 
R

RagDyer

If you are going on a row by row basis, starting in Row3, try this:

=SUM(INDEX(3:3,$Z$1):INDEX(3:3,$Z$2))

And copy down as needed.
 
Top