Hi Guys,
A lot of people has asked me this query on How to Count Text without counting duplicates in Excel, so I have decided to write an article on it, so let us discuss first what the query is, so we all know very well how to count text in Excel, for this we have COUNTA FUNCTION
Now lets assume a situation where you wants to COUNT text but with the condition that any duplicates coming in the range will be excluded, so the way to do that is discussed in this article, so lets learn
In the given situation, you can see that we have a lot of rows containing text, though duplicates are coming in these lines
-
Product on sale
Python for Data AnalysisOriginal price was: ₹3,000.00.₹2,000.00Current price is: ₹2,000.00. -
Product on sale
Excel Data Validation in Depth Full EbookOriginal price was: ₹99.00.₹69.00Current price is: ₹69.00. -
Product on sale
Comprehensive Partnership Deed Template – Indian Partnership Act 1932Original price was: ₹49.00.₹29.00Current price is: ₹29.00. -
Product on sale
Ultimate Task Tracker Template for ExcelOriginal price was: ₹49.00.₹29.00Current price is: ₹29.00. -
Product on sale
Input Tax Credit Register Template for ExcelOriginal price was: ₹49.00.₹29.00Current price is: ₹29.00. -
Product on sale
50 VBA Codes for BeginnersOriginal price was: ₹99.00.₹49.00Current price is: ₹49.00. -
Product on sale
Power BI for Data AnalysisOriginal price was: ₹3,000.00.₹2,000.00Current price is: ₹2,000.00. -
Product on sale
Basic to Advance MS Excel Course in HindiOriginal price was: ₹6,000.00.₹2,000.00Current price is: ₹2,000.00. -
Product on sale
Microsoft Excel – VBA ProjectsOriginal price was: ₹4,000.00.₹1,000.00Current price is: ₹1,000.00.

Now, If I apply COUNTA (=COUNTA(D5:D20)) in it you can see that the result is 16

However, we want that excel should count only unique values in it, so how to do it
The answer is hidden in the question itself, as you only have to use UNIQUE Function in it & type instead of =COUNTA(D5:D20), =COUNTA(UNIQUE(D5:D20)), then we will get the result as 4, which is what we require

