VBA capture cell address of nth smallest value in a range

  • Hi there,


    Is there a way to capture what the cell address is of the nth smallest value in a specified range?


    What I am trying to do is pass in a range to my code, and then fill the cells within that range a certain colour depending if it is the 1st smallest, 2nd smallest, 3rd smallest value etc. in the range?


    Any help would be appreciated.


    Thanks!

  • Re: VBA capture cell address of nth smallest value in a range


    sample data is attached file


    the macro is in vba and repeated here




Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!