Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I currently use this formula:


I'd like to change it to instead of having the $D$363 hard coded, that it pick up the "363" part from another cell that I specify. Here was what I tried if that gives you any better indication of what I want to accomplish:

=sumif($E$2:$E$363,L3,concatenate("$D$2:$D$",A1)), where cell A1 has the value 363 in it.

This doesn't work though.


share|improve this question

1 Answer 1

up vote 1 down vote accepted

There's a few ways of doing that, here's an easy one:

=SUM(INDIRECT(ʺ$D$2:$D$ʺ & A1))
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.