## Count unique text values in a range containing both numerical and text values

*Article updated on December 06, 2010*

Unique cell values are greyed, in the picture above.

### Array formula in D14:

Unique distinct cell values are greyed, in the picture above.

### Array formula in D26:

Unique text cell values are greyed, in the picture above.

### Array formula in D38:

Unique distinct text cell values are greyed, in the picture above.

### Array formula in E50:

Unique numerical cell values are greyed, in the picture above.

### Array formula in E62:

Unique distinct numerical cell values are greyed, in the picture above.

### Array formula in E74:

**Named ranges**

tbl (B6:F12)

What is named ranges?

### How to implement array formula to your workbook

Change the named range.

### Download excel file for this tutorial.

Count unique text values in a range containing both numerical and text values.xls

(Excel 97-2003 Workbook *.xls)

### Functions in this article:

**COUNTIF(**range,criteria**)**

Counts the number of cells within a range that meet the given condition

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

**ISTEXT(**value**)
**Checks whether a value is text, and returns TRUE or FALSE

**ISNUMBER(**value)

Checks whether a value is a number and returns TRUE or FALSE

**ISBLANK(**value**)
**Checks whether a reference is to an empty cell and returns TRUE or FALSE

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

Count how many times a string exists in a cell range (case insensitive)

Question: How do I count how many times a word exists in a range of cells? It does not have […]Count how many numbers between a specific value occurring multiple times

jeyner asks: I need to count in a list the interval between the same value. Example list, 1-2-3-1-4-5-1-6-7-8-9-7-8-1 So the […]### 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

## Share this article