Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Ranking without preset Excel function.

Hi guys!

An other question for you.


I would like to create a new UDF with VBA which could allow me to
determine the rank of a number within an array.


I know that Excel already has a function (WorksheetFunction.Rank())
that does that. But this function requires the second argument to be
declared as Range. Therefore I cannot use this function in the
context
of UDFs where I use array variables, because if I use an array as the
second argument I get a ByRef error. I do not want to assign my array
to a range on the worksheet, but I simply want to use my array as
reference for the ranking procedure.


How can I re-write the ranking procedure without using the Rank
built-
in function, so that I can use an array as reference?


Thank you very much!!!


Antonio.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ranking Function casdaq Excel Worksheet Functions 4 March 15th 07 04:50 AM
can excel draw with preset values man57 Excel Discussion (Misc queries) 6 April 17th 06 10:05 AM
how do i delete a preset popup description window in excel? PM Excel Discussion (Misc queries) 1 April 5th 06 09:08 PM
Is there anyway to add more than the preset 265 columns in Excel? CarlaWood Excel Discussion (Misc queries) 6 December 8th 05 10:09 PM
Can I create a new worksheet in excel with preset formating? pertimesco Excel Discussion (Misc queries) 2 March 1st 05 07:32 PM


All times are GMT +1. The time now is 08:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"