Contact

RANK.EQ in Microsoft Excel: Ranking Direction and Equal Values

Statistical Intermediate Microsoft Excel

Use RANK.EQ in Microsoft Excel 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 Microsoft Excel. How formula examples are checked

Quick answer

Use RANK.EQ in Microsoft Excel to assign an observation its position in a numeric list, giving tied values the same best position. The working example below describes daily order totals; it returns a position, not orders. 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 Microsoft Excel.

Syntax and arguments

RANK.EQ(number, ref, [order])

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

An operations workbook with one row per trading day provides the scenario. Enter the following numeric observations into A2:A9, one per row, with a header in A1. Use a spare result cell outside the input range.

Cell Orders
A2 240
A3 180
A4 420
A5 240
A6 300
A7 540
A8 120
A9 360

Download the Microsoft Excel 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$9,0)

Expected result: 5.

A2 contains 240. There are 4 observations greater than 240, 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(240,A2:A9,0)

Expected result: 5.

The value 240 occurs 2 times. Each occurrence receives rank 5; 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$9,1)

Expected result: 3.

The nonzero/true direction switches to ascending order. There are 2 observations below 240, 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.

Microsoft Excel notes and compatibility

The Microsoft function reference is the source for this guide’s Excel name and purpose. The Excel reference uses an array or reference as the comparison data. The small, ordinary cell ranges here avoid depending on dynamic-array functions or workbook-specific named ranges.

For the daily order workbook, keep one comparable trading day per row. Exclude a grand-total row from the statistical input; it is not another trading day. When combining weeks, check that repeated dates are legitimate records rather than duplicated imports. The formula cannot make that distinction for you.

These examples use English function names and comma-separated arguments. A workbook configured for another regional separator may require semicolons. The data addresses stay the same. Test a copied formula on a small known input after an import or file conversion; this guide is not a certification of every Excel edition or exchange format.

For the same statistical question in other programs, see RANK.EQ in Google Sheets, 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.

MEDIAN, LARGE, SMALL, STDEV.S, STDEV.P, VAR.S, VAR.P. Browse the Microsoft Excel function library for the other published guides.

Editorial verification: The vendor documentation was reviewed on 2026-10-12. Scope: Microsoft Excel worksheet functions; the current Microsoft help entry is the reference, not a claim about every historical edition. 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.