I need a function that will return the rank of a value within a range of a values, i.e. I have a named range with a numeric value in every cell. I want to parse the range and one of the cell values to a function and have the function return the rank of that value, i.e If the value is the smallest number in the range it returns 1, if the second smallest number in the range it returns 2, etc.
It also needs to handle duplicates, i.e. if the value is say, 10, there are three 10s in the range and 10 is the second smallest number in the range then the function returns 2 for the first 10, 3 for the next 10 and 4 for the third 10. It then returns 5 for the next value after 10.
My range is small,e.g. 32 numbers and only one column. Can anyone help?
Bookmarks