DIAGARRAY

=DIAGARRAY(Array)

Array
Required.

Extract the diagonal part of an array.

GeertD

Board Regular
Joined
Dec 22, 2020
Messages
60
Office Version
  1. 365
Platform
  1. Windows
DIAGARRAY: Extract the diagonal part of an array.
Excel Formula:
=LAMBDA(A,LET(
   RowsA,ROWS(A),Coldex,SEQUENCE(,ColsA),
   ColsA,COLUMNS(A),Rowdex,SEQUENCE(RowsA),
   IF(Rowdex=Coldex,A,0)
))
DXLR's LAMBDA.LET Library_v00.07.xlsb
ABCD
1123
2123
3123
4
5100
6020
7003
8
Sandbox_Mr.Excel
Cell Formulas
RangeFormula
A5:C7A5=DiagArray(A1:C3)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,604
Messages
6,173,312
Members
452,510
Latest member
RCan29

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