MTRACE(squared_array)

MTRACE(squared_array) returns the sum of the diagonal elements of a squared matrix (m x m) entered as a range or array.

In the screenshot below, the squared matrix is contained in the cell range A1:C3 and the MTRACE() function is in cell E1. 

MTRACE Function Parameters