hello maybe you could work this sample out.

Ranksampler.xlsx