Referring to a certain column in an array

A

avi

Hello,

I have an array with 10 column and many rows

I want to perform an Excel function (as average) on a specific column

Is there a way to do it directly? I look for something as :

Application.Average(MyArray(*,6)) for the average of
column 6

Thanks for your help

Avi
 
J

JE McGimpsey

One way:

With Application.WorksheetFunction
Debug.Print .Average(.Index(MyArray,,6))
End With
 
Top