Create formula based on cell precedent

ffourie

New Member
Joined
Aug 29, 2017
Messages
2
Hi

I would like to do the following for a number of different columns:

GP1 = F1​
GQ1 = (GP1 - 1)*D1​

Column GP is far removed from column F and therefore I re-display value.
Column "F" is not constant, but column "D" will always be offset -2 relative to F.

How can I do this without having to scroll to the left twice, first to find column F and then to find column D? Can I somehow use the precedent of GP to determine what the new "D" should be?

In the same worksheet it might also appear as:

GU80 = BW80​
GV80 = (GU80 - 1)*BU80​

Once again, BU80 is offset (0,-2) relative to GU80.

If possible, I would prefer to do this using a UDF because it might make dragging the formula to other cells easier, I think?

Thanks
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Thanks Aladin, but not what I was looking for because I do not want to manually adapt the formula every time.

Wherever I use the proposed function (cell XFD1) it should look at the cell to the left thereof (cell XFC1), ask what cell was used to populate XFC1 (suppose it was F1), and then offset -2 with regard to the latter (to obtain D1).
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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