Repository navigation
Add RANK.EQ function and RANK alias (HF-419) - #1786
Open
marcin-kordas-hoc wants to merge 4 commits into
Open
marcin-kordas-hoc wants to merge 4 commits into
marcin-kordas-hoc wants to merge 4 commits into
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
hyperformula-docs | aef06a6 | Commit Preview URL Branch Preview URL |
Oct 08 2026, 04:11 AM |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 60b087b. Configure here.
Performance comparison of head (aef06a6) vs base (3a9c34b) |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
marcin-kordas-hoc
force-pushed
the
feat/hf-419-rank-eq
branch
from
October 8, 2026 04:07
0a6dfab to
aef06a6
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1786 +/- ##
========================================
Coverage 97.26% 97.26%
========================================
Files 203 203
Lines 16022 16034 +12
Branches 3555 3558 +3
========================================
+ Hits 15583 15595 +12
Misses 431 431
Partials 8 8
🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Adds the
RANK.EQfunction and itsRANKalias (HF-419).RANK.EQ(number, ref, [order])returns the rank ofnumberwithinref. Tied values share the top rank of their group.orderomitted or0ranks descending, any other value ascending.refcount: text, booleans, empty cells and numeric strings are ignored.#N/Awhennumberis not found among the numeric cells,#VALUE!whennumbercannot be coerced to a number, and propagates an error found inref.MedianPlugin, with a metadata catalogue entry, translations for all built-in languages, and a CHANGELOG entry.Behaviour check against Excel
38 formulas were evaluated in Excel Online (MS Graph live session) and in HyperFormula: 37 identical, 0 different, 1 not evaluable in Excel (an inline array
{1,2,3}as the list, which the Graph API rejects). They cover ties, both orders (0, non-zero, negative, boolean), booleans, text and numeric text in the list, typed numbers (percentage, date and currency cells, which an earlier head of this pull request dropped), an absent number, an emptynumbercell, single-cell and 2D lists, errors in the list, and a text or booleannumber.Numbers are compared exactly, as Excel does for ranking: with
A1 = 0.1+0.2andB1 = 0.3,RANK.EQ(0.3, A1:C1)is 3 in both (measured).COUNTIFandMATCHround and would treat them as equal; the rank functions do not.Translations
Localized names follow the sources listed in DEV_DOCS.md. Where no confirmed localized name was available (cs, fi, hu, id, tr) the English name is kept. The Polish names were additionally checked in Excel.
Tests
Paired tests branch:
feat/hf-419-rank-eqin the tests repository (45 tests). Full local run on this head: 503 suites, 6278 passed, 3 skipped.🤖 Generated with Claude Code
Note
Low Risk
Additive built-in statistical function using the same plugin and licensing patterns as existing rank-adjacent functions; no changes to core engine or security-sensitive paths.
Overview
Adds RANK.EQ and the RANK alias so formulas can rank a value within a range, aligned with Excel-style behavior.
RANK.EQ(number, ref, [order]) is implemented in
MedianPlugin(withLARGE/SMALL). It ranks using only numeric cells inref, gives tied values the same top rank, defaults to descending order whenorderis omitted or0, and returns#N/Awhennumberis not among the numeric values. RANK resolves to RANK.EQ via the plugin alias map.Supporting updates wire the function into the catalog: statistical function metadata, localized names across built-in language packs, inclusion in proprietary license function capabilities, and a CHANGELOG entry.
Reviewed by Cursor Bugbot for commit aef06a6. Bugbot is set up for automated code reviews on this repo. Configure here.