Sum of values in variable range

L

Lawman

How do I add the numerical values in say the second column of a named range
(comprising say 3 columns and 20 rows) from row X to row Y, where X and Y
are the results of calculations in, say, cells A1 and B1?

Many thanks for your help

L
 
B

Bernard Liengme

=SUM(INDEX(mydata,A1,2):INDEX(mydata,B1,2))
where 'mydata' was the name of my (3 column * 20 row) range
best wishes
 
L

Lawman

Don't worry - I seem to have solved it with =SUM(OFFSET(....) function. Or
do you know a more elegant way?

L
 

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