RANK.AVG in Google Sheets: Average Tied Positions and Preserve Direction
Use Google Sheets RANK.AVG with explicit ascending or descending order, check tied cutoffs and distinguish numeric rank positions from record identifiers.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: RANK.AVG(value,data,[is_ascending]) returns a value’s rank and averages the positions occupied by tied observations. Omitted direction means descending, or FALSE. TRUE requests ascending order.
Availability and version history
- Introduced: first introduction date is not established by the official history reviewed; no desktop release number is inferred.
- Availability: documented in the rolling Google Sheets service; these examples use the web worksheet workflow.
- Checked: October 14, 2026; official RANK.AVG reference. Documentation and independent models, with no native Google Sheets execution or wider client certification.
Syntax and the comparison group
=RANK.AVG(value,data,[is_ascending])
The value and comparison dataset are required. The dataset can be an array or range. The optional flag controls whether the smallest or largest measurement receives rank 1.
Google’s reference uses TRUE and FALSE, which are shown explicitly below. A numeric parameter-conversion table for unusual nonzero values is not established here. Keep the comparison range fixed when copying a rank formula down.
Example 1: average two occupied positions
Enter 40,30,30,10 in A2:A5. In B2 enter and fill down:
=RANK.AVG(A2,$A$2:$A$5,FALSE)
Expected ranks are 1,2.5,2.5,4. Both copies of 30 occupy the second and third positions, whose average is 2.5. The lowest value still occupies position four.
Using TRUE instead gives ascending ranks 4,2.5,2.5,1. Averaging the tied group does not change which direction is considered better; the reporting question determines that choice.
Example 2: three observations share the same value
For a separate C2:C6 dataset 50,40,40,40,20:
=RANK.AVG(40,C2:C6,FALSE)
Expected rank: 3, the average of positions 2,3,4. The full descending rank column is 1,3,3,3,5.
These ranks sum to 15, the same total as the positions 1 through 5. This arithmetic control applies to the complete numeric comparison group; omitting one row from a rank summary changes what is being checked.
Advanced example: compare a different tie convention
For the first dataset 40,30,30,10, RANK.EQ returns competition ranks 1,2,2,4, while RANK.AVG returns 1,2.5,2.5,4.
Both preserve the tie between the two 30 values. Neither assigns one of those records a unique second place. The distinction is how the occupied positions are summarized numerically.
A record ID should remain separate. Ranks can change when new observations enter the comparison group, even if the value on an existing row is unchanged.
Advanced example: a numeric cutoff is not a row quota
For the first fixture, fill this test down:
=RANK.AVG(A2,$A$2:$A$5,FALSE)<=2
Only the 40 row is selected. Both 30 values have rank 2.5 and fail that cutoff. Raising the cutoff to 2.5 selects three rows.
There is no average-rank cutoff that selects exactly one of the two tied 30 records. If a process requires exactly two selected rows, define a separate tie-break policy. Copying a cutoff from a RANK.EQ report can change the selected set because the tied groups have different numeric ranks.
Advanced example: verify the omitted default and reference locking
With A3=30 in the first fixture:
=RANK.AVG(A3,$A$2:$A$5)
=RANK.AVG(A3,$A$2:$A$5,FALSE)
Both have expected rank 2.5 under Google’s documented descending default.
For A5=10, ranking against the complete A2:A5 range gives 4, while ranking against A5:A5 alone gives 1. That difference is caused by the comparison group, not the measured value.
A shrinking reference can make later rows appear to improve merely because earlier observations disappeared from their comparison set. Use absolute references when the policy requires a common group.
Advanced example: rounded measurement policy
For numeric 4.01,4.04,5, full-precision descending ranks are 3,2,1. A one-decimal display can make the first two look equal without changing those ranks.
If the stated policy really ranks one-decimal categories, use a separate ROUND helper. Its values become 4,4,5, whose descending average ranks are 2.5,2.5,1.
Retain the original and helper columns. The rounded categories are new numeric inputs, rather than a formatting-only change. Rounding a displayed rank afterward is also different: changing 2.5 into an integer would hide the chosen average-position rule.
Input and error boundaries
Google’s dedicated body establishes rank direction and averaged ties but does not provide a complete type or error matrix. Ordinary text, numeric text, Booleans, empty cells, lookup values absent from the dataset and source-error references remain unverified here.
Every primary ranked value is present in a clean numeric comparison group. No native result or error code is inferred from Excel merely because the names match.
A rank does not express the numerical gap between observations. In 40,30,30,10, a difference of 10 and a difference of 20 do not create proportional rank distances. Keep the measurements beside their positions when interpreting a report.
References and verification
Examples use fictional inputs, English function names and comma argument separators. Expected outputs are independently modeled from the cited rules, not native Sheets captures. Check the spreadsheet locale when reproducing punctuation-sensitive formulas.