percentrank.inc

Reboshua

Board Regular
Joined
Jan 23, 2015
Messages
88
I have just under 600k rows of data, all values, no formulas. I am trying to do a percentrank.inc for one column of data and it's taking 20 minutes to do it.

I have an absolute beast of a machine - AMD Ryzen Threadripper, using all 32 cores, with 32gb of 2666mhz ddr4.

How can it possibly take that long to calculate one column of data?
 
It has to sort 600,000 rows 600,000 times ...
 
Upvote 0
I get that you have a fast PC. The formula is sorting 600,000 rows in 2 milliseconds (20*60/600000); that sounds pretty fast to me.

Then you do it 600000 times.

You might try sorting by that column first. Some sort algorithms are faster when the data is sorted, or nearly so. Some aren't.
 
Last edited:
Upvote 0
I put numbers 1 through 600000 in a column and the percentage formula in another: it took 17 minutes.
 
Upvote 0
I guess what I don't understand is why it has to sort 600,000 times. I can calculate 1 cell in the range and it doesn't need to know what every other cell is going to be

(I've tried it sorted descending as well and no different, unfortunately.)

Thanks
 
Upvote 0
I guess what I don't understand is why it has to sort 600,000 times.
That's how PercentRank finds the position of a value in a dataset.
 
Upvote 0

Forum statistics

Threads
1,226,834
Messages
6,193,214
Members
453,779
Latest member
C_Rules

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top