New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rank function #46
Comments
Please refer to https://reogrid.net/document/customize-function/ unvell.ReoGrid.Formula.FormulaExtension.CustomFunctions["RANK"] = (cell, args) =>
{
// sample code
if (args.Length == 0)
{
// this function needs at least one argument
return null;
}
return Convert.ToString(args[0]).ToUpper();
}; Also will be great if you make the function as a standard built-in function of ReoGrid by pushing your change to this repository. |
Thank you very much. |
Hello Jing, I tried to use RANK in the customize function but I am not getting the desired result FormulaExtension.CustomFunctions["RANK"] = (cell, args) =>
{
return Rank(cell, args);
}; How do I get the data in the reference cell and rank it in the reference range? |
@segunodu Did you solve this? I am considering to make the RANK function as a built-in function of ReoGrid in next version. |
Hello Jingwood, sorry I have not responded since. I have solved the Rank function issue using a Rank method and creating Customize Rank function. The method:
And the Customize function:
Thank you very much. I hope this method will be easier to add into the next Reogrid release. If you need help creating other Customize functions, let me know. Thank you. |
Hello Jing, I am trying to implement Excel RANK function using Customize function.
Code:
Usage:
How do I implement it in Customize function.
Thank you.
The text was updated successfully, but these errors were encountered: