Hello,
Would appreciate any help on a small issue.
I have an array of arrays [ArrOfArr(1 to 7, 1 to 2)] where each element in the array is another array containing non-negative double type numbers [ie arr1(1 to x), arr2(1 to y)]. I am trying to find the geomean of each array within the array of arrays.
- I have a geoval variable of type double that is intended to capture the geomean of each individual array within the ArrOfArr group.
- My understanding from the MSDN website is that the GEOMEAN function should work with an array (verbatim from MSDN: "You can also use a single array or a reference to an array instead of arguments separated by commas.")
Currently my macro sticks on the following line:
geoval = Application.worksheetfunction.geomean(ArrOfArr(1,1))
Can someone please explain what I am doing wrong? Thanks in advance /d4
Would appreciate any help on a small issue.
I have an array of arrays [ArrOfArr(1 to 7, 1 to 2)] where each element in the array is another array containing non-negative double type numbers [ie arr1(1 to x), arr2(1 to y)]. I am trying to find the geomean of each array within the array of arrays.
- I have a geoval variable of type double that is intended to capture the geomean of each individual array within the ArrOfArr group.
- My understanding from the MSDN website is that the GEOMEAN function should work with an array (verbatim from MSDN: "You can also use a single array or a reference to an array instead of arguments separated by commas.")
Currently my macro sticks on the following line:
geoval = Application.worksheetfunction.geomean(ArrOfArr(1,1))
Can someone please explain what I am doing wrong? Thanks in advance /d4