Hello everyone,
I am looking for a way to code for a median calculation in a VBA user defined function.
The end goal is to have annual averages calculated from a data set, so values included for each calculation are based on the year a value was recorded (in cell offset(0,1)). We have been able to do this for the mean calculations by using the code:
We also need to calculate each annual median... I am thinking along the lines of listing the values, sorting the values and outputting the middle one but have no idea how to go about coding for this?? Any ideas would be appreciatedPlease Login or Register to view this content.
Side note: how do I input the above code in this post as code rather than text? Sorry am new to using this forum
Thank you
Bookmarks