RANK.EQ in Google Sheets: Ranking Direction and Equal Values
Use RANK.EQ in Google Sheets with three worked numeric examples, CSV practice data, tie rules, and software-specific documentation notes.
Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in Google Sheets. How formula examples are checked
Quick answer
Use RANK.EQ in Google Sheets to assign an observation its position in a numeric list, giving tied values the same best position. The working example below describes support resolution times; it returns a position, not minutes. The official reference supports the function’s identity and purpose.
This guide separates documentation review from application testing. The expected numbers are independently calculated, not screenshots or results captured from Google Sheets.
Syntax and arguments
RANK.EQ(value, data, [is_ascending])
Value: the measurement whose rank is required, here an observation already present in the register.
Reference range: the comparison group. Lock its row and column coordinates when copying a ranking formula.
Direction: descending for highest-first ranking, ascending for lowest-first ranking. The examples state the direction explicitly and use the parameter form documented for this program.
When this calculation is useful
Use RANK.EQ when every row needs a position against the same comparison group. Unlike LARGE or SMALL, which return a value when given a position, ranking starts with a value and returns its position. Keep an ordinary record identifier as well; a rank is not a stable ID.
The EQ tie rule is competition ranking: if two records share second place, both receive 2 and the next record receives 4. It is neither average ranking nor dense ranking. A leaderboard that must award a unique position to every row needs a separate, documented tie-break rule rather than an assumption that this function resolves ties.
Set up the practice data
A shared support log with one row per resolved ticket provides the scenario. Enter the following numeric observations into A2:A8, one per row, with a header in A1. Use a spare result cell outside the input range.
| Cell | Minutes |
|---|---|
| A2 | 8 |
| A3 | 12 |
| A4 | 10 |
| A5 | 9 |
| A6 | 12 |
| A7 | 15 |
| A8 | 7 |
Download the Google Sheets RANK.EQ practice data (CSV). Import it into a new, blank sheet starting at A1, with a comma as the file delimiter and the header row retained. The CSV contains input values only, not formulas or native test results. Blank spacer columns place the requested position in D2 and any additional test data in column F. Keep observations numeric rather than importing them as text.
Three worked examples
Example 1: Rank a row with the highest value first
=RANK.EQ(A2,$A$2:$A$8,0)
Expected result: 6.
A2 contains 8. There are 5 observations greater than 8, so its descending position is one plus that count. The reference range stays fixed when this formula is copied down.
Example 2: Make the equal-value rule explicit
=RANK.EQ(12,A2:A8,0)
Expected result: 2.
The value 12 occurs 2 times. Each occurrence receives rank 2; a lower distinct value follows those tied positions rather than receiving the next dense rank. Duplicate measurements remain separate observations.
Example 3: Switch to lowest-value-first ranking
=RANK.EQ(A2,$A$2:$A$8,1)
Expected result: 2.
The nonzero/true direction switches to ascending order. There are 1 observations below 8, so its ascending rank is one plus that count. Choose this direction when a lower measurement should receive rank 1.
Check the mathematics and interpretation
For a value present in the list, descending rank equals one plus the count of observations strictly greater than it. Ascending rank uses the count strictly below it. This explains equal ranks without choosing a particular tied row or sorting only part of a record. Keep stored results at full available precision and round only the final presentation when a report requires it. The displayed expectations above are rounded where necessary; a different number of displayed decimal places is not by itself a calculation error.
Common mistakes and troubleshooting
There are gaps after a tie. That is the intended best-position rule, not a missing result. Do not renumber the remaining rows unless your report deliberately uses a different ranking scheme.
The apparent best record ranks last. Check the direction. Descending order gives the highest number rank 1; ascending order gives the lowest number rank 1. Use an explicit direction in shared workbooks instead of leaving the interpretation implicit.
Displayed values look tied but ranks differ. Formatting can hide differences in the underlying numbers. Decide whether the ranking rule should use full precision or deliberately rounded measurements, then create the intended numeric input before ranking. Keep the comparison range fixed when copying down.
Google Sheets notes and compatibility
The Google Sheets reference documents this function for worksheet data.
The support-log example uses ordinary worksheet cells, not a BigQuery data column. Some Google help pages also show Connected Sheets syntax; that is not the syntax being demonstrated here. A ticket’s duration is entered as a number of minutes, not as a time-of-day text label.
For a shared log, agree on whether reopened tickets form new observations and whether each row represents one ticket or one agent action. Keep that decision consistent before comparing reporting periods. When collaborators paste data, inspect a small sample of numeric cells and confirm the selected range still ends at the intended row.
The examples use English function names and commas. Adjust the argument separator to the file’s locale as needed, while keeping decimal values and cell references intact. No import/export or native Google Sheets execution was performed for this guide.
For the same statistical question in other programs, see RANK.EQ in Microsoft Excel, RANK.EQ in ONLYOFFICE, RANK.EQ in SoftMaker PlanMaker. These links identify corresponding measures, not a guarantee that names, mixed-data rules, error codes or file conversions are identical.
Related functions and evidence
MEDIAN, LARGE, SMALL, STDEV.S, STDEV.P, VAR.S, VAR.P. Browse the Google Sheets function library for the other published guides.
Editorial verification: The vendor documentation was reviewed on 2026-10-12. Scope: Ordinary Google Sheets cells using English function names. Connected Sheets / BigQuery column syntax is outside this guide. Three numeric examples were checked with an independent arithmetic model. No native application run was performed. Single-value population edge cases, mixed-data coercion, exact error-code parity and round-trip workbook compatibility remain untested; they are not labelled application-verified.