tech on the net
Home About Us Feedback Site Map


Access Excel Word


SQL Oracle / PLSQL SQL Server MySQL MariaDB PostgreSQL

Web Development

HTML CSS Color Picker


C Language


ASCII Table Linux UNIX Java Clipart Joke of the Moment

Excel Functions

(Scroll to see more)

Share this page:

MS Excel: RANK Function (WS)

Learn how to use the Excel RANK function with syntax and examples.


The Microsoft Excel RANK function returns the rank of a number within a set of numbers.


The syntax for the Microsoft Excel RANK function is:

RANK( number, array, [order] )

Parameters or Arguments

number is the number to find the rank for.

array is a range or array of numbers to use for ranking purposes.

order is optional. It specifies how to rank the numbers.

If order is 0, it ranks numbers in descending order.
If order is not 0, it ranks numbers in ascending order.

If the order parameter is omitted, the RANK function assumes order is 0 (descending order).

Applies To

The RANK function can be used in the following versions of Microsoft Excel:

  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The RANK function can be used in Microsoft Excel as the following type of function:

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel RANK function examples and explore how to use the RANK function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the spreadsheet above, the following Excel RANK examples would return:

=RANK(A4, A2:A6, 1) would return 5
=RANK(A4, A2:A6, 0) would return 1
=RANK(A3, A2:A6, 0) would return 4