Dynamic Cells

  • Thread starter mmartens12 via OfficeKB.com
  • Start date
M

mmartens12 via OfficeKB.com

I want to evaluate a single row at a time in a set of formulas.

How would I take a simple equation like =D6 + D12 and make the 12 in D12
dynamic?

Example =D6 + D&(C3) when C3 = 12


What would be the correct syntax to do this?
 
C

CurlyDave

I want to evaluate a single row at a time in a set of formulas.

How would I take a simple equation like =D6 + D12 and make the 12 in D12
dynamic?

Example   =D6 + D&(C3)    when C3 = 12

What would be the correct syntax to do this?

=SUM(INDIRECT(D6&":D"&C12))
 
S

Shane Devenshire

Hi,

Here are two other solutions:

=D6+INDIRECT("D"&C3)

=D6+OFFSET(D1,C3-1,)

And for a little bit of interest if anyone reads this

=SUM(SUM(INDIRECT("D"&{6,12})))

note that the last formula will not return the correct result with only one
SUM, nor if it is array entered with one sum.
 

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