## How to rank uniquely with criteria in excel

**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

How to rank text uniquely in excel

Question: How do I rank text cell values uniquely? If text values were sorted alpabetically from A to Z, the […]

Today I´ll show you how to rank teams using excel formulas. The following example ranks soccer teams in the Premier […]

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

### Leave a Reply

### How to comment

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

<code>Insert your formula here.</code>

**Convert less than and larger than signs**

Use html character entities instead of less than and larger than signs.

< becomes < and > becomes >

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

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

Put your VBA code here.

[/vb]

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

Upload picture to postimage.org or imgur

Use the img tag, like this: <img src="Insert pic link here">

**Contact Oscar**

You can contact me through this contact form

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.