G
Guest
Microsoft KB article 198571, "HOW TO: Call Excel Functions from Within
Microsoft Access 2000" gives examples of calling the Median, ChiInv, and
Least Common Multiple functions from Access. I had a need recently to call
the Excel Rank function, but I have been unsuccessful so far.
In Excel, the Rank function will rank ties with the same number. For
example, if you have four test scores as shown below, the rank would be as
indicated:
Score Rank
100 1
97.85 2
97.85 2
95.2 4
The format for using the Rank function in Excel is:
RANK(number,ref,order)
Number is the number whose rank you want to find.
Ref is an array of, or a reference to, a list of numbers. Nonnumeric
values in ref are ignored.
Order is a number specifying how to rank number.
The three examples in the KB article do not include an array or list of
numbers. That's where I was struggling. Does anyone have an example of
calling an Excel function from Access that involves passing an array of
numbers?
Thanks
Microsoft Access 2000" gives examples of calling the Median, ChiInv, and
Least Common Multiple functions from Access. I had a need recently to call
the Excel Rank function, but I have been unsuccessful so far.
In Excel, the Rank function will rank ties with the same number. For
example, if you have four test scores as shown below, the rank would be as
indicated:
Score Rank
100 1
97.85 2
97.85 2
95.2 4
The format for using the Rank function in Excel is:
RANK(number,ref,order)
Number is the number whose rank you want to find.
Ref is an array of, or a reference to, a list of numbers. Nonnumeric
values in ref are ignored.
Order is a number specifying how to rank number.
The three examples in the KB article do not include an array or list of
numbers. That's where I was struggling. Does anyone have an example of
calling an Excel function from Access that involves passing an array of
numbers?
Thanks