Count unique and duplicate numbers from a closed workbook in excel (formula)
Here is a picture of the closed workbook. There can´t be any blank cells or text values in your range.
As you can see, there are five unique distinct values (1, 2, 3, 5 and 6) and one duplicate value (3).
How to count unique and duplicate numbers from a closed workbook
Formula in B1:
Don´t forget to change path to your closed workbbook.
Formula in B2:
Don´t forget to change path to your closed workbbook
Evaluate formula
If I try to evaluate formula I get som strange results. A lot of #ref errors but the final result is correct.
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
FREQUENCY(data_array, bins_array)
Calculates how often values occur within a range of values and then returns a vertical array of numbers having one more element than Bins_array.
Related blog posts
- Count unique and duplicates text values in a closed workbook in excel (formula)
- Extract unique distinct numbers from closed workbook in excel (formula)
- Extracting unique distinct text values from a closed workbook in excel (formula)
- Count unique distinct numbers across multiple sheets (3D range) in excel
- Return unique and duplicate numerical data entries from multiple sheets (3D range) in excel









Leave a Reply