Table of Contents
The RANK IF formula in Google Sheets allows users to determine the rank of a specific value within a given range based on a specified criteria. This formula is useful for organizing and analyzing data, as it quickly identifies the position of a value in relation to other values in the range. By using this formula, users can efficiently sort and filter data according to their desired criteria, making data analysis more efficient and accurate.
Use a RANK IF Formula in Google Sheets
You can use the following methods to create a RANK IF formula in Google Sheets:
Method 1: RANK IF with One Criteria
=RANK(C1,FILTER(A:C,A:A="string"))
This formula finds the rank of the value in cell C1 among all values in column C where the corresponding value in column A is equal to “string.”
Method 2: RANK IF with Multiple Criteria
=RANK(C1,FILTER(A:C,A:A="string1", B:B="string2"))
This formula finds the rank of the value in cell C1 among all values in column C where the corresponding value in column A is equal to “string1” and the value in column B is equal to “string2.”
The following examples show how to use each method with the following dataset in Google Sheets:

Example 1: RANK IF with One Criteria
We can use the following formula to calculate the rank of the points values for the rows where the team is equal to “Mavs”:
=RANK(C2,FILTER(A:C,A:A="Mavs"))
The following screenshot shows how to use this syntax in practice:

Note that a rank of 1 indicates the largest value.
So, here’s how to interpret the rank values:
- The Guard on the Mavs team with 21 points has the 3rd highest points value among all players on the Mavs.
- The Guard on the Mavs team with 14 points has the 5th highest points value among all players on the Mavs.
Note that a #N/A value was produced for each of the Spurs players since we specified in the formula that we only want to provide a ranking for players on the Mavs team.
Example 2: RANK IF with Multiple Criteria
We can use the following formula to calculate the rank of the points values for the rows where the team is equal to “Mavs” and the position is equal to “Forward”:
=RANK(C2,FILTER(A:C,A:A="Mavs", B:B="Forward"))
The following screenshot shows how to use this syntax in practice:

Here’s how to interpret the rank values:
- The Forward on the Mavs team with 19 points has the 3rd highest points value among all players on the Mavs who are Forwards.
- The Forward on the Mavs team with 32 points has the 1st highest points value among all players on the Mavs who are Forwards.
And so on.
Note that a #N/A value was produced for any player who didn’t meet both criteria in our FILTER function.
Note: You can find the complete documentation for the RANK function in Google Sheets .
Additional Resources
The following tutorials explain how to perform other common tasks in Google Sheets:
Cite this article
stats writer (2024). How can I use a RANK IF formula in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-a-rank-if-formula-in-google-sheets/
stats writer. "How can I use a RANK IF formula in Google Sheets?." PSYCHOLOGICAL SCALES, 30 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-a-rank-if-formula-in-google-sheets/.
stats writer. "How can I use a RANK IF formula in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-a-rank-if-formula-in-google-sheets/.
stats writer (2024) 'How can I use a RANK IF formula in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-a-rank-if-formula-in-google-sheets/.
[1] stats writer, "How can I use a RANK IF formula in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I use a RANK IF formula in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
