## How to rank uniquely with criteria in excel

*Article updated on July 30, 2017*

**Question:** How do I rank column B "within" the same category in column A? See picture below. I want the formula to rank text values uniquely.

**Answer: ***(Edit: Simplified excel formula and attached a new excel file.)*

**Array formula in C2:**

**How to create an array formula**

- Select cell C2
- Type array formula in cell C2
- Press and hold Ctrl + Shift
- Press enter once
- Release all keys

Copy formula down to C6

**Named ranges***
ID *(A2:A6)

*_cells (B2:B6)*

Text

Text

What is named ranges?

**Download excel example fil**

ranking-text with criteria.xls

(Excel 97-2003 Workbook *.xls)

**Functions in this article:**

**ROW(**reference**)** Returns the rownumber of a reference

**IF(**logical_test;[value_if:true];[value_if_false]**)
**Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE

**SUM(**number1,[number2],**)
**Adds all the numbers in a range of cells

### One Response to “How to rank uniquely with criteria in excel”

### Leave a Reply

**How to add a formula to your comment:**

<code>your formula</code>

Remember to convert less than and larger than signs to html character entities before you post your comment.

**How to add VBA code to your comment:**

[vb 1="vbnet" language=","]

VBA code

[/vb]

**How to add a picture to your comment:**

Upload picture to postimage.org

Add picture link to comment.

**Contact Oscar**

You can contact me through this webpage

I got the formula working, and although it's a great formula for criteria ranking it's not suitable for excel sheets with more than a thousand lines. Unless you have a very powerful machine.