Hi everybody
I'm looking for some help applying the standard deviation to one column in a matrix, I don't know the right way to define the range in this formula, so I will put an example for a better explanation of what I intend to do:
Option Base 1
Sub Producto()
ReDim c(6, 2) As Variant
c(1, 1) = 10
c(1, 2) = 15
c(2, 1) = 17
c(2, 2) = 74
c(3, 1) = 16
c(3, 2) = 83
c(4, 1) = 75
c(4, 2) = 15
c(5, 1) = 78
c(5, 2) = 54
c(6, 1) = 26
c(6, 2) = 56
Dim e As Double
e = application.WorksheetFunction.StDev_P(c(1,1)
6,1))
End Sub
When I hit enter after typing <e = application.WorksheetFunction.StDev_P(c(1,1)
6,1))> There's a message displying a compilation error: "Expected: list separator or )" and the code highlight the ":"
This is an example so I can't define item by item to apply this function. I hope you've understood me and I will thank a lot anyone who help me[h=3][/h]
I'm looking for some help applying the standard deviation to one column in a matrix, I don't know the right way to define the range in this formula, so I will put an example for a better explanation of what I intend to do:
Option Base 1
Sub Producto()
ReDim c(6, 2) As Variant
c(1, 1) = 10
c(1, 2) = 15
c(2, 1) = 17
c(2, 2) = 74
c(3, 1) = 16
c(3, 2) = 83
c(4, 1) = 75
c(4, 2) = 15
c(5, 1) = 78
c(5, 2) = 54
c(6, 1) = 26
c(6, 2) = 56
Dim e As Double
e = application.WorksheetFunction.StDev_P(c(1,1)

End Sub

This is an example so I can't define item by item to apply this function. I hope you've understood me and I will thank a lot anyone who help me[h=3][/h]