## Excel Office

Excel How Tos, Tutorials, Tips & Tricks, Shortcuts

# Tag: RANK function

## Basic numeric sort formula in Excel

To dynamically sort data that contains only numeric values, you can use a helper column and a formula created with the RANK and COUNTIF functions. Formula =RANK(A1,values)+COUNTIF(exp_rng,A1)-1 Note: this formula is the set-up for a formula that can extract and display data using a predefined sort order in a helper column. One example here. Explanation In the example shown, the formula in D5 is: =RANK(C5,sales)+COUNTIF(\$C\$5:C5,C5)-1…

## How to randomly assign people to groups in Excel

To randomly assign people to groups or teams of a specific size, you can use a helper column with a value generated by the RAND function, together with a formula based on the RANK and ROUNDUP functions. Formula =ROUNDUP(RANK(A1,randoms)/size,0) Explanation In the example shown, the formula in D5 is: =ROUNDUP(RANK(C5,randoms)/size,0) which returns a group number for each name listed in…

## Excel Round a number down Example

If you need to round to force any number to round down, regardless of its value you can use the ROUNDDOWN function with a specified number of digits. This tutorials shows how to Round a number down  in Excel. Formula =ROUNDDOWN(number,digits) Explanation In the example, the formula in cell D7 is =ROUNDDOWN(B7,C7) This tells Excel to take the value in…

## Excel Round a number Example

If you need to round a number in a normal fashion (i.e. round values of 5 or more up and values less than 5 down) you can use the ROUND function with a specified number of digits. This tutorials shows how to Round specific number in Excel. Formula =ROUND(number,digits) Explanation In the example, the formula in cell D6 is =ROUND(B6,C6) This…

## Excel Get number at place value Example

This tutorials shows how to  get the number at a specific place value in Excel. To get the number at a specific place value you can use a formula based on the MOD function. By place value, we mean hundred thousands, ten thousands, thousands, hundreds, tens, ones, etc. Formula =MOD(number,place*10) – MOD(number,place) Explanation In the example shown, the formula in…

## Excel Get integer part of a number Example

This tutorials shows how to Get integer part of a number  in Excel. To remove the decimal part of a number and return only the integer portion, you can use the TRUNC function to slice off the decimal. Formula =TRUNC(number) Explanation In the example, cell C6 contains this formula: =TRUNC(B6) The TRUNC function simply truncates (i.e. removes) numbers; it doesn’t…

## Excel Get decimal part of a number Example

This tutorials shows how to Get decimal part of a number in Excel. If you need to get just de the decimal part of a number, you can use a simple formula based on the TRUNC function. Formula =number-TRUNC(number) Explanation In the example, cell C6 contains this formula: =B6-TRUNC(B6) This formula uses the TRUNC function to figure out the the…

## Excel Rank without ties Example

This tutorials shows how to Rank numbers without  ties  in Excel. To assign rank without ties, you can use a formula based on the RANK and COUNTIF functions. Formula =RANK(A1,range)+COUNTIF(exp_range,A1)-1 Explanation In the example shown, the formula in E5 is: =RANK(C5,points)+COUNTIF(\$C\$5:C5,C5)-1 where “points” is the named range How this formula works This formula breaks ties with a simple approach: this first…

## Excel Rank with ordinal suffix Example

This tutorials shows how to Rank with ordinal suffix in Excel. To add an ordinal suffix to a number (i.e. 1st, 2nd, 3rd, etc.) you can use a formula based on the CHOOSE function to assign the suffix. Formula =CHOOSE(number,”st”,”nd”,”rd”,”th”,”th”,”th”,”th”,”th”,”th”,”th”) Explanation In the example shown, the formula in C5 is: =CHOOSE(B5,”st”,”nd”,”rd”,”th”,”th”,”th”,”th”,”th”,”th”,”th”) How this formula works Ordinal numbers represent position or…

## Excel Rank race results Example

This tutorials shows how to Rank race results in Excel. To rank a set of race times, where the lowest (fastest) time is ranked #1, you can use the RANK function. Formula =RANK(time,times,1) Explanation In the example shown, the formula in D6 is: =RANK(C6,times,1) Where times is the named range C6:C13. How this formula works You can use the RANK function to rank numeric…

## How to Use RANK function in Excel

The RANK function returns the rank of a number in a list of numbers. RANK gives duplicate numbers the same rank. This tutorials shows how to rank a set of numeric values, where the highest value is ranked #1 in Excel. To achieve this you can use the RANK function. Formula =RANK(value,data) See Examples of  Excel Rank function  below: 1. If the third argument…

## Excel Rank if formula Example

This tutorials shows how to rank items in a list using one or more criteria in Excel. To achieve this you can use the COUNTIFS function. Formula =COUNTIFS(criteria_range,criteria,values,”>”&value)+1 Explanation In the example shown, the formula in E5 is: =COUNTIFS(groups,C5,scores,”>”&D5)+1 where “groups” is the named range C5:C14, and “scores” is the named range D5:D14. The result is a rank for each person in…