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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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