ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Formula Reproduction (https://www.excelbanter.com/excel-programming/362418-formula-reproduction.html)

bodhisatvaofboogie

Formula Reproduction
 
Okay, here's my formula, very simple:

=D2/D51

Now that resulting value beigns in E2. When I try to drag the formula to do
the same things in every following cell in Column E, it doesn't work. I want
it to continue on down the line. BUT it not only changes D2 to D3, D4,
etc...it changes D51 to D52, D53, etc......how do I get it to not do that,
and yet reproduce on down the line correctly? Mind you I'm trying to get
this done in a macro as well, so if I can just record the process, I'll just
copy and paste the code into the macro. THANKS!!!

Harald Staff

Formula Reproduction
 
Try

=D2/$D$51
A thumb rule: Put a $ in front of everything that should NOT change when you
fill down/right.

HTH. Best wishes Harald

"bodhisatvaofboogie" skrev i
melding ...
Okay, here's my formula, very simple:

=D2/D51

Now that resulting value beigns in E2. When I try to drag the formula to

do
the same things in every following cell in Column E, it doesn't work. I

want
it to continue on down the line. BUT it not only changes D2 to D3, D4,
etc...it changes D51 to D52, D53, etc......how do I get it to not do that,
and yet reproduce on down the line correctly? Mind you I'm trying to get
this done in a macro as well, so if I can just record the process, I'll

just
copy and paste the code into the macro. THANKS!!!




Dave Peterson

Formula Reproduction
 
Maybe you could just change the formula:

=d2/d$51

range("E2:E50").formula = "=d2/d$51"

Maybe????


bodhisatvaofboogie wrote:

Okay, here's my formula, very simple:

=D2/D51

Now that resulting value beigns in E2. When I try to drag the formula to do
the same things in every following cell in Column E, it doesn't work. I want
it to continue on down the line. BUT it not only changes D2 to D3, D4,
etc...it changes D51 to D52, D53, etc......how do I get it to not do that,
and yet reproduce on down the line correctly? Mind you I'm trying to get
this done in a macro as well, so if I can just record the process, I'll just
copy and paste the code into the macro. THANKS!!!


--

Dave Peterson

bodhisatvaofboogie

Formula Reproduction
 
Yeah, I figured that out shortly after I posted. *smacks forehead*
THANKS!!! :)

"Harald Staff" wrote:

Try

=D2/$D$51
A thumb rule: Put a $ in front of everything that should NOT change when you
fill down/right.

HTH. Best wishes Harald

"bodhisatvaofboogie" skrev i
melding ...
Okay, here's my formula, very simple:

=D2/D51

Now that resulting value beigns in E2. When I try to drag the formula to

do
the same things in every following cell in Column E, it doesn't work. I

want
it to continue on down the line. BUT it not only changes D2 to D3, D4,
etc...it changes D51 to D52, D53, etc......how do I get it to not do that,
and yet reproduce on down the line correctly? Mind you I'm trying to get
this done in a macro as well, so if I can just record the process, I'll

just
copy and paste the code into the macro. THANKS!!!






All times are GMT +1. The time now is 11:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com