For example, suppose that
{={1,2,3,4,5}}
in the cell. Is there any way to find out how many elements are in this array, and what are these elements?
Now, introducing the idea of @chris neilsen, now I have the VBA function below
Function rinfo(r As Range) As String With r.CurrentArray rinfo = .Address & ", " & .Rows.Count & ", " & .Columns.Count & ", " & .Value & ", " & .Value2 End With End Function
however, the data from it does not look reliable, namely
$A$29, 1, 1, 1, 1
Rows.Count and Columns.Count rows make sense if they count the rows and columns used on the sheet. But, as an indication of the data in the array formula, no.
source share