copying formula to other cells problem

avd2007

Board Regular
Joined
Jan 8, 2007
Messages
50
I'm developing a pricing matrix for a client. In column A the length of their final product is listed in inches. In Row 1 the width of the final product is listed in inches. There is a very complex formula for multiplying the different values against various raw material costs, and then adding a mark-up to the whole thing. The matrix looks a bit like this:

<pre>
A B C D
(1) 22 24 26
(2) 12
(3) 14
(4) 17
(5) 20
</pre>

So the formula for my first cell, for calculating the price of a product that is 12x22, is something like (B1/12)+(A2/12).

Then to copy it into the next cell down, I want to get a formula of (B1/12)+(A3/12). I want B1 to stay the same for that entire column, and only the value from the A column to increment to the next row. But the formula is also being incremented to B2, B3, etc.

Is there a simple solution to this? I have a couple hundred rows and 30 some columns so editing the code and handpasting cell by cell does not seem efficient.

Thanks!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I'm developing a pricing matrix for a client. In column A the length of their final product is listed in inches. In Row 1 the width of the final product is listed in inches. There is a very complex formula for multiplying the different values against various raw material costs, and then adding a mark-up to the whole thing. The matrix looks a bit like this:




A B C D
(1) 22 24 26
(2) 12
(3) 14
(4) 17
(5) 20

</PRE>

So the formula for my first cell, for calculating the price of a product that is 12x22, is something like (B1/12)+(A2/12).

Then to copy it into the next cell down, I want to get a formula of (B1/12)+(A3/12). I want B1 to stay the same for that entire column, and only the value from the A column to increment to the next row. But the formula is also being incremented to B2, B3, etc.

Is there a simple solution to this? I have a couple hundred rows and 30 some columns so editing the code and handpasting cell by cell does not seem efficient.

Thanks!
Try it like this...

=(B$1/12)+(A2/12)

The dollar sign $ will keep the row reference in B1 from changing.
 
Upvote 0
I thiknk you just need to anchor the rows for B and the column for A.

You can do that by adding $.

Assuming the 12 is constant perhaps something like this.

=(B$1+$A2)/12
 
Upvote 0
Thanks, that works great! Especially the tip about how to anchor both the row AND the column. All my values are filled in and I spot-checked to validate -- they are all correct.
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,794
Members
452,943
Latest member
Newbie4296

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