Array reference in Formula

nightcrawler23

Well-known Member
Joined
Sep 24, 2009
Messages
721
HI,
i have the below formula which is working fine.
Code:
=MMULT(MINVERSE({1,1,1;4,2,1;9,3,1}),L7:L9)
how do i change the array part to links to cells. Excel isnt allowing me to do so saying "You cannot change part of an array.

This is what i want

Code:
=MMULT(MINVERSE({A1^2,B1,1;A2^2,B2,1;A3^2,B3,1}),L7:L9)
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
yes, i did select all the cell --> F2 --> select "1" in the array and click on cell A1 --> ERROR.

My formula works fine when the array is constant. I want to link the array element to cells on my sheet.
 
Upvote 0
You need to select all the cells that contain your array formula. You can't edit a single cell in an array.
 
Upvote 0
i do select all the cells of the formula.
my current formula(Which is working fine is this:
=MMULT(MINVERSE({1,1,1;4,2,1;9,3,1}),B1:B3)

here i am inversing an array which is constant. i want to link each element of this array to cells on my sheet like this.

=MMULT(MINVERSE({A1^2,B1,1;A2^2,B2,1;A3^2,B3,1}),L7:L9)

temp.JPG
 
Upvote 0
That array formula is in more than one cell. Normally it would be in a range of cells with the same number of rows as array1 and the same number of columns as array2. To select all the cells that contain the array formula press Ctrl+/.
 
Upvote 0
You can't use cell references in an array constant but try using CHOOSE to create the required array - this should work for your example

=MMULT(MINVERSE(CHOOSE({1,2,3},A1:A3^2,B1:B3,B1:B3^0)),L7:L9)
 
Upvote 0
:pray: Thanks a lot barry.

That worked exactly ho i wanted.

=MMULT(MINVERSE(CHOOSE({1,2,3},A1:A3^2,A1:A3,A1:A3^0)),B1:B3)
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,825
Members
449,190
Latest member
rscraig11

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