Firstly you need to better define the problem
1. There is no apparent connection between columns B&C and column D?
2. When you say Rank, do you mean Score?
that is the minimum value in column D is 7, The maximum value 30
If you want to assign them 5 scores in categories of size 4.6
like this:
View attachment 58748
You can then use that table to assign the values in Column K to the
see the attached file where this is implemented
If you want the values sorted 5 to 1 simply change the values in Column K
3. If you simply want to choose a random number between 1 and 5 in column E use: =RANDBETWEEN(1,5)