# RANK.AVG function: Description, Usage, Syntax, Examples and Explanation

# What is RANK.AVG function in Excel?

RANK.AVG function is one of Statistical functions in Microsoft Excel that returns the rank of a number in a list of numbers: its size relative to other values in the list; if more than one value has the same rank, the average rank is returned.

## Syntax of RANK.AVG function

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

The RANK.AVG function syntax has the following arguments:

**Number:**The number whose rank you want to find.- Ref : An array of, or a reference to, a list of numbers. Nonnumeric values in Ref are ignored.
**Order (Optional):**A number specifying how to rank number.

## Explanation of RANK.AVG function

- If Order is 0 (zero) or omitted, Excel ranks number as if ref were a list sorted in descending order.
- If Order is any nonzero value, Excel ranks number as if ref were a list sorted in ascending order.

## Example of RANK.AVG function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

You can adjust the column widths to see all the data, if need be.

Day | Temp (F) | |

7/1/2011 | 89 | |

7/2/2011 | 88 | |

7/3/2011 | 92 | |

7/4/2011 | 101 | |

7/5/2011 | 94 | |

7/6/2011 | 97 | |

7/7/2011 | 95 | |

Formula |
Description |
Result |

=RANK.AVG(94,B2:B8) | Finds the rank (the position) of the value 94 in the cell range B2:B8. In this case, 7/5/11, when the temperature reached 94, was the 4th hottest day of the days listed. | 4 |