Copying Formula

Lubna Khan

New Member
Joined
Feb 27, 2008
Messages
40
How do we copy a formula when it goes this way:

d17/d2*4.38
d18/d2*4.38
d19/d2*4.38
means the first variable keeps changing,, the rest remain the same, i cant recall!!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
assuming A1:A3

range("a1:a3").formula = "=d17"

result: =d17, =d18, =d19

range("a1:a3").formula = "=$d$17"
result: =d17, =d17, =d17
 
Upvote 0
Peter, why do you want to complicate the solution to that question combining it with VBA ?
 
Upvote 0
For the cell that changes relatively, don't do anything and for the cell that remains same just put $ before the column and $ before the row number.

Examle, d17/$d$2*4.38.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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