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: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: Introduction version not established by the official history reviewed.
- Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
- Checked: October 14, 2026; official RANK.EQ reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
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 explicit ascending setting switches to lowest-first order. There is 1 observation below 8, so its ascending rank is one plus that count. Choose this direction when a lower measurement should receive rank 1.
Default direction and a full rank column
Google explicitly documents omitted is_ascending as FALSE, meaning descending order. For A2=8 in the original log, these therefore share the same expected numeric rank:
=RANK.EQ(A2,$A$2:$A$8)
=RANK.EQ(A2,$A$2:$A$8,FALSE)
Both give 6. Using TRUE instead gives ascending rank 2. The original 0/1 examples are retained; TRUE/FALSE is the explicit parameter wording in Google’s dedicated help. Unusual numeric direction values are not certified here.
Filled down over the seven observations, descending ranks are 6,2,4,5,2,1,7. Ascending ranks are 2,5,4,3,5,7,1. The two 12-minute values occupy the same best position in either direction.
Advanced example: a rank cutoff is not a row quota
For a descending top-two policy, use:
=RANK.EQ(A2,$A$2:$A$8,FALSE)<=2
Filled down, expected flags are FALSE,TRUE,FALSE,FALSE,TRUE,TRUE,FALSE. That selects three observations: 15 and both copies of 12.
If the requirement is exactly two records, define an additional tie-break rule. The rank does not identify which of the tied records should be retained, and silently discarding one would change the policy.
For resolution times, descending order highlights the longest durations. If the intended question is the fastest resolutions, use ascending order and label the report accordingly.
Advanced example: shrinking references silently change the comparison
Keep the original data in A2:A8. Compare two formulas on the row containing the last value 7:
=RANK.EQ(A8,$A$2:$A$8,FALSE)
=RANK.EQ(A8,A8:A8,FALSE)
The first has expected rank 7; the second has expected rank 1 because its comparison group contains only that one value. RANK.EQ is a position calculation, so it does not share the two-observation requirement of the standard-deviation functions.
Absolute references preserve the agreed comparison group when filling down. A rank that unexpectedly improves near the end of a column can be a range-reference problem rather than an improvement in the measurements.
Advanced example: precision is a ranking policy
For a separate numeric list 8.01,8.04,9, descending competition ranks are 3,2,1. Formatting the first two to one decimal does not change their stored inequality.
A deliberate ROUND helper at one decimal instead gives 8,8,9, whose ranks are 2,2,1. Keep both columns if the reporting convention uses rounded measurements, so a reader can see why a tie appeared.
Google’s reference also distinguishes RANK.AVG, which assigns the average occupied position. Under that convention the two rounded 8 values would share 2.5 rather than 2. That comparison is a different tie rule, not a correction to RANK.EQ.
Check a workbook that still uses RANK
Google also documents RANK(value,data,[is_ascending]). Its dedicated RANK reference uses 0 for highest-first order, 1 for lowest-first order and 0 when the last argument is omitted. It explicitly documents #N/A when the target is absent. RANK.EQ’s separate reference is the one that explicitly establishes the best-position tie rule used earlier in this guide.
Do not rename every RANK formula just because the names look related. First compare the question, comparison range and direction. Use a separate blank sheet for this small migration control, leaving the seven-row support log unchanged:
| Cell | Test value |
|---|---|
| A2 | 8 |
| A3 | 15 |
| A4 | 9 |
| A5 | 12 |
For these four distinct numeric observations, the independently expected controls are:
| Formula | Expected result |
|---|---|
| =RANK(9,$A$2:$A$5,0) | 3 |
| =RANK(9,$A$2:$A$5) | 3 |
| =RANK(9,$A$2:$A$5,1) | 2 |
| =RANK.EQ(9,$A$2:$A$5,FALSE) | 3 |
| =RANK.EQ(9,$A$2:$A$5,TRUE) | 2 |
Two values exceed 9 and one is below it. Change A3 from 15 to 6, without editing any formula: 9’s expected descending position becomes 2, while its ascending position becomes 3. Restore 15 afterwards. This mutation checks that the formulas depend on the intended live range, not a manually typed rank.
=RANK(10,$A$2:$A$5,0) has Google’s documented #N/A expectation because 10 is absent. Do not replace that error with zero: zero would disguise a lookup or comparison-group problem. This is a documented expectation, not an error captured from Sheets.
These controls deliberately contain no ties. The reviewed RANK help does not state its tie policy, so this section does not certify full RANK/RANK.EQ equivalence, duplicate handling or round-trip conversion from another program. Keep a copy of the original formulas and verify any tie-bearing workbook separately before replacing names.
Added verification, October 21, 2026: Both dedicated Google references were inspected, and these controls were independently calculated. No native Sheets execution, account access or workbook import/export test was performed.
Sparse-reference limits
The dedicated RANK.EQ help establishes rank direction, optional default and top-rank ties, but does not supply a complete matrix for text values, Boolean values, missing lookup numbers or error-containing data. Those cases remain unverified here. All primary ranked values occur in their numeric comparison groups.
A rank is not a stable identifier, a percentile or a direct measure of the difference between observations. Keep the original measurement and a record identifier beside it. Small changes near a tie can change several positions even when the numerical measurement changes only slightly.
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: Complete article and dedicated Google reference reviewed on October 14, 2026. All three original numeric examples, added arithmetic and rank models, original CSV inputs and related links were checked independently. Exact approved availability/history text is retained. Documentation-based errors are distinguished from observed results. No native Google Sheets execution, maximum-size benchmark or round-trip workbook certification was performed. Input types and errors not explicitly established by the cited function source remain held.