Hi!
A part of my formula is as follows:
(MMULT(MMULT(TRANSPOSE($C$25:$C$29); VarCovar(INDIRECT("returns!b4:f" & H30)));$C$25:$C$29))*100))
The problem comes in this part:
VarCovar(INDIRECT("returns!b4:f" & H30)) where VarCovar is a VBA function that creates a variance-covariance matrix.
Instead of refering to the cell B4 I would like to refer to a cell in column B and specify the row number in a different cell (for example G30, that would contain a number). Is this possible?
I've been beating my head against the wall for a couple of days now and would appreciate any help on this problem.
Thank You
-Cashmire
A part of my formula is as follows:
(MMULT(MMULT(TRANSPOSE($C$25:$C$29); VarCovar(INDIRECT("returns!b4:f" & H30)));$C$25:$C$29))*100))
The problem comes in this part:
VarCovar(INDIRECT("returns!b4:f" & H30)) where VarCovar is a VBA function that creates a variance-covariance matrix.
Instead of refering to the cell B4 I would like to refer to a cell in column B and specify the row number in a different cell (for example G30, that would contain a number). Is this possible?
I've been beating my head against the wall for a couple of days now and would appreciate any help on this problem.
Thank You
-Cashmire