VBA Rank

ehcpieterse

Active Member
Joined
Nov 16, 2006
Messages
278
Hi there,

I am having trouble with:
Ranking = Application.WorksheetFunction.Rank(Window(100), Window, 0)

Where Window is an array containing 100 values. I am trying to determine the rank of the last value in the array.

Thanks
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
ehcpieterse,

"Window" is a VBA Class. I am not sure I am explaing this correctly.

You may want to try changing "Window" to something else.


Have a great day,
Stan
 
Upvote 0
Hi,

I have changed it to:
Ranking = Application.WorksheetFunction.Rank(RankRange(100), RankRange, 0)

I am still getting "Object required". Does this function only want a range input instead of an array?
 
Upvote 0
ehcpieterse,

Excel Help:
RANK
Returns the rank of a number in a list of numbers. The rank of a number is its size relative to other values in a list. (If you were to sort the list, the rank of the number would be its position.)

Does this function only want a range input instead of an array?

It would appear so.


See Aladin Akyurek's response to:
http://www.mrexcel.com/forum/showthread.php?t=82479


Have a great day,
Stan
 
Upvote 0

Forum statistics

Threads
1,203,350
Messages
6,054,900
Members
444,760
Latest member
TeckTeck

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