Do you mean something like
MMULT(MMULT(aaray1, array2), array3)
or
MMULT(array1, MMULT(aaray2, array3))
mows
ExcelXP /WinXP
Doesn't look like the OP means either of these. The OP did state the problem
clearly, but the example was skimpy. The problem would be that when the
2nd/middle matrix conforms to both the 1st and 3rd matrices, your formulas work.
However, when all 3 matrices are 1xN, Nx1 and Nx1, respectively, MMULT wont
work. That is,
=MMULT(MMULT({1,2,3},{4;5;6}),{7;8;9})
returns an error. The only fully general solution would be something like
=IF(COUNT(MMULT(X,Y))=1,MMULT(X,Y)*Z,
IF(COUNT(MMULT(Y,Z))=1,X*MMULT(Y,Z),
MMULT(MMULT(X,Y),Z)))
Note, however, that situations in which the 2nd matrix doesn't conform to both
1st and 3rd matrices are actually results of dot products times other vectors,
and the order of evaluation is essential. Thus the two operations aren't
associative, thus this is *not* two matrix multiplications.
--
Public Service Announcement
Don't attach files to postings in nonbinary newsgroups like this one.
Harlan,
The formula I did was intended to be effectively the dot product.of 3 square
matrices or at least ones whose dimensions are correct. Clearly I have
misunderstood what OP was wanting.
mows