Kelvin Stott
Active Member
- Joined
- Oct 26, 2010
- Messages
- 338
Hello,
I want to create a VBA function to get the weighted average value of an unspecified number of data points, where each data point is given a certain weight, for example
Function WtdAve(Data1, Weight1, Data2, Weght2, ..., etc.)
I want to use Paramarray where each data point and its weight is given as a pair, but I am not sure how to do this. Could anyone please help point me in the right direction with an example.
Many thanks,
Kelvin
I want to create a VBA function to get the weighted average value of an unspecified number of data points, where each data point is given a certain weight, for example
Function WtdAve(Data1, Weight1, Data2, Weght2, ..., etc.)
I want to use Paramarray where each data point and its weight is given as a pair, but I am not sure how to do this. Could anyone please help point me in the right direction with an example.
Many thanks,
Kelvin