## Count unique and duplicates text values in a closed workbook

*Article updated on March 13, 2018*

Here is a picture of a closed workbook

### How to count unique distinct text values in a closed workbook

This formula works with possible blank cells in range A1:A6.

'C:\temp\[closed workbook.xls]Sheet1'!$A$1:$A$6 is the full path to the closed workbook. Make sure you edit this path.

### How to count duplicate text values in a closed workbook

This formula works also with possible blank cells in range A1:A6.

'C:\temp\[closed workbook.xls]Sheet1'!$A$1:$A$6 is the full path to the closed workbook. Make sure you edit this path.

### Functions in this article:

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

**MIN(**number1,[number2]**)**

Returns the smallest number in a set of values. Ignores logical values and text

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

**MATCH(**lookup_value;lookup_array; [match_type]

Returns the relative position of an item in an array that matches a specified value

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 […]### One Response to “Count unique and duplicates text values in a closed workbook”

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

Oscar,

let me check this out. I will get back to you with any issues.