Here's a more direct answer to your question. First I have to explain a
couple of things: the formula assumes that your data is in column A (column
#1) ; you've put your lower limit in cell D1 and the upper limit in E1; and
finally, as with a VLOOKUP(), the entries in that column are unique.
=SUM(INDIRECT(ADDRESS(MATCH(D1,A:A),1) & ":" & ADDRESS(MATCH(E1,A:A),1)))
Now, you wanted to add that value to the value in another cell. If that
other cell has a formula in it already, you can simply add this to that
formula:
+ SUM(INDIRECT(ADDRESS(MATCH(D1,A:A),1) & ":" & ADDRESS(MATCH(E1,A:A),1)))
That is, if your existing formual is something like:
=AVG(B9:B99)
then after adding the above formula to it, it would look like:
=AVG(B9:B99) + SUM(INDIRECT(ADDRESS(MATCH(D1,A:A),1) & ":" &
ADDRESS(MATCH(E1,A:A),1)))
But if your cell has a user entered value in it, like 66, then what you're
going to have to do to get the user's entered value of 66 added in with the
result of our SUM() formula is to have the 66 placed somewhere else (lets say
it gets put into F1), then in the final results cell you could have the
formula:
=F1 + SUM(INDIRECT(ADDRESS(MATCH(D1,A:A),1) & ":" & ADDRESS(MATCH(E1,A:A),1)))
Again, I hope this helps some.