sum with vlookup

T

Tom Bartolo

I am trying to use the sum function with a vlookup table and it is not
letting me. My formula is:

=sum(vlookup(1,baseline,3):vlookup(1,baseline,month+3))

What am I doing wrong?

Thanks.

Tom
 
M

Max

Try using INDIRECT to wrap the VLOOKUP, for example:

: =SUM(INDIRECT(VLOOKUP($A6,MyRange,3)):INDIRECT(VLOOKUP($A6,MyRange,4)))
 
T

Tom Bartolo

Sorry, INDEX was the funtion I needed. It woks perfectly with SUM.
Thanks for the help.

Tom
 

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