Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.