Locking Ranges in a Formula for Multiple Cells

hayden

Board Regular
Joined
Sep 23, 2005
Messages
188
Hello everyone. Ive got a quick question for you regarding locking ranges in a formula for multiple cells.

I have 5 reference matrices of data located on their own worksheets in A1:Z26 (26x26), lets call these ref1 to ref5. I also have a table of values located in A1:E100 (5x100), lets call this table1. What I am trying to create is a set of 100 matrices (26x26) that basically do a sum product with Row 1 of the 5x100 and each cell in the 5 reference matrices. For example, the formula in Row 1 Col 1 of the first of 100 matrices is something like this:
Code:
 =[col1,row1,table] x {col1,row1,ref1] + [col2,row1,table]x[col1,row1,ref2] + ...

I can lock the reference to the table cells so that they do not change columns or rows and drag this formula to all 26x26 cells in my first matrix. But to create the next 99 matrices I have to go back and edit the formulas to reference the correct reference matrices and table reference.

To solve this I have taken the values from row 1 in the table and just duplicated them 26 times next to the desired matrix and not locked the row reference. That way when I copy the values from the first matrix to the second it has the correct table reference and I only need to go back and change the ref1 to ref 5 values.

Is there an easy way to lock the ref1 to ref 5 references in the 1st matrix so that when i copy and paste for the remaining 99 matrices I don't have to go back and change them?
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,224,585
Messages
6,179,706
Members
452,939
Latest member
WCrawford

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