2

It is possible to construct an array in excel as follows: ={1,2;3,4}

Using this method I want to calculate the inverse of a 5 x 5 matrix of a series of elements in one row rather than distributed as in a true 5 x 5 matrix over 5 rows and 5 columns.

Is it possible to reference the cells in their current location to construct a 5 x 5 matrix within the MINVERSE function such as =MINVERSE(A1:A5;A6:A10...A21:25)?

2 Answers 2

3

Here is one alternative for Excel 2021 Users:

enter image description here

=MINVERSE(INDEX(A:A,TRANSPOSE(SEQUENCE(COUNTA(A:A)/5, 5))))

Or Bit shorter:

=MINVERSE(INDEX(A:A,SEQUENCE(,5,0,5)+SEQUENCE(5)))
3

You can use WRAPCOLS to achieve this

=MINVERSE(WRAPCOLS(A1:A25,5))

xx

Non-Excel-365 solution

If you build a matrix manually or via formulas then you can use INDEX

=MINVERSE(INDEX(A1:A25,C2:G6))

xx

3
  • Great thank you! That would be perfect - unfortunately I have Excel 2021 which this feature isn't available for. I have found an alternative in the form of CHOOSE({1,2,3,4,5;6,7,8,9,10;11,12,13,14,15;16,17,18,19,20;21,22,23,24,25},A1, B1, C1..., Y1) which is painfully longwinded but works for now.
    – Kris
    Commented 2 days ago
  • that's true: you need Excel 365 for WRAPCOLS
    – Ike
    Commented 2 days ago
  • 1
    maybe the added solution helps you
    – Ike
    Commented 2 days ago

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.