Count unique text values in a range containing both numerical and text values
Unique cell values are greyed, in the picture above.
Array formula in D14:
=SUM(IF(COUNTIF(tbl, tbl)=1, 1, 0)) + CTRL + SHIFT + ENTER
Unique distinct cell values are greyed, in the picture above.
Array formula in D26:
=SUM(IF(ISBLANK(tbl), 0, 1/(COUNTIF(tbl, tbl)))) + CTRL + SHIFT + ENTER
Unique text cell values are greyed, in the picture above.
Array formula in D38:
=SUM(IF(ISTEXT(tbl)*COUNTIF(tbl, tbl)=1, 1/(COUNTIF(tbl, tbl)), 0)) + CTRL + SHIFT + ENTER
Unique distinct text cell values are greyed, in the picture above.
Array formula in E50:
=SUM(IF(ISTEXT(tbl), 1/(COUNTIF(tbl, tbl)), 0)) + CTRL + SHIFT + ENTER
Unique numerical cell values are greyed, in the picture above.
Array formula in E62:
=SUM(IF(ISNUMBER(tbl)*COUNTIF(tbl, tbl)=1, 1/(COUNTIF(tbl, tbl)), 0)) + CTRL + SHIFT + ENTER
Unique distinct numerical cell values are greyed, in the picture above.
Array formula in E74:
=SUM(IF(ISNUMBER(tbl), 1/(COUNTIF(tbl, tbl)), 0)) + CTRL + SHIFT + ENTER
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
Related posts:
- Filter unique text values from a range containing both numerical and text values in excel
- Create a unique distinct text list from a range containing both numerical and text values in excel
- Extract and sort text cells from a range containing both numerical and text values
- Extract duplicate text values from a range containing both numerical and text values in excel
- Count unique distinct text values in a range in excel
- Filter unique text values in a range using “contain” condition in excel
- Return unique and duplicate numerical data entries from multiple sheets (3D range) in excel
- Count unique distinct values using date criteria in a range in excel
- Filter text values existing in range 1 but not in range 2 using array formula in excel
- Filter unique text values using “begins with” criterion in a range in excel








Leave a Reply