- Dear All, I need your help in creating a VBA code.
I must create a user-defined function to calculate the mean of the N largest values in a range of cells.
It is compulsory I use this function: Function MeanOfLargest (DataRange as Range, NbVals as Integer) as Variant
DataRange is a range of cells containing numbers; NbVals is the number of largest values in dataRange with which the mean will be calculated.
Thank you for your help ! Have a great day