Question: How do I count unique distinct values in two ranges combined?



Formula in D14:

=SUM(1/(COUNTIF(Table1, Table1)+COUNTIF(Table2, Table1)))+SUM(1/(COUNTIF(Table2, Table2)+COUNTIF(Table1, Table2))) + CTRL + SHIFT + ENTER

Formula in D18:

=SUM(IF((COUNTIF(Table1, Table1)+COUNTIF(Table2, Table1))=1, 1, 0))+SUM(IF((COUNTIF(Table2, Table2)+COUNTIF(Table1, Table2))=1, 1, 0)) + CTRL + SHIFT + ENTER

Named ranges
Table1 (A1:D4)
Table2 (A6:D9)
What is named ranges?

How to implement array formula to your workbook
Change named ranges.

Download excel sample file for this tutorial.
(Excel 97-2003 Workbook *.xls)

Functions in this article:

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

Adds all the numbers in a range of cells

Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE

This blog article is one out of twelve articles on the same subject "count unique and unique distinct".