Evasive Dynamic Formula

DougRobertson

Active Member
Joined
Sep 22, 2009
Messages
334
Office Version
  1. 365
Platform
  1. Windows
Hello,

From cell D10, I want to have a formula that tells me the value of the number in the cell two rows up, or in this case, cell D8.

For a non-dynamic formula, I would just use:
HTML:
=D8

But I want the row number to be dynamic, something like
HTML:
=D&(Row()-2)

I fear that the solution is painfully simple, but I can't seem to find it!

With thanks in advance!

~ DWR
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try

=INDEX(D:D,ROW()-2)

We're getting close:

Whereas the formula
Code:
If(D10="","Blank","NotBlank")
could return a "" (empty value), which I need, the INDEX route does not.

Is there another way around this?

Thanks again!
 
Upvote 0
Why doesn't that work?

the index function is simply a replacement for the cell reference only, not the whole formula.

So take your formula
If(D10="","Blank","NotBlank")

You replace the 'Cell Reference' only, with the index function
If(INDEX(D:D,ROW()-2)="","Blank","NotBlank")
 
Upvote 0
Hmmm - it was actually another part of the bigger formula I'm working on that was the problem.

This was a great help my friend!!

Thank-you very much for sharing your expertise!

~ DWR
 
Upvote 0

Forum statistics

Threads
1,203,047
Messages
6,053,195
Members
444,645
Latest member
mee siam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top