Skip to main content

How to count same or duplicate values only once in a column?

Supposing, some duplicate values are populated in a column of your worksheet, now, you need to count the same or duplicate values only once which means to count only the unique values as following screenshot shown. How could you solve this task in Excel?

Count same or duplicate values only once in a column with formulas

Count same or duplicate values only once in a column with an easy feature


Count same or duplicate values only once in a column with formulas

Count the same values only once without case sensitive

To count the same values only once in a column, please apply the following formula into a blank cell where you want to output the result:

=SUMPRODUCT((A2:A15<>"")/COUNTIF(A2:A15,A2:A15&""))

And then, press Enter key to get the result, see screenshot:


Count the same values only once with case sensitive

To count the same values only once with case sensitive, please apply the below formula:

=SUM(IFERROR(1/IF(A2:A15<>"", FREQUENCY(IF(EXACT(A2:A15, TRANSPOSE(A2:A15)), MATCH(ROW(A2:A15), ROW(A2:A15)), ""), MATCH(ROW(A2:A15), ROW(A2:A15))), 0), 0))

And then, press Ctrl + Shift + Enter keys together to get the correct result, see screenshot:

Note: In the above formulas, A2:A15 is the data range that you want to count the duplicates only once.


Count same or duplicate values only once in a column with an easy feature

With Kutools for Excel’s Count cells with unique values (include the first duplicate) utility, you can quickly count the number of the same values only once in a column without remebering any formulas.

Note:To apply this Count cells with unique values (include the first duplicate), firstly, you should download the Kutools for Excel, and then apply the feature quickly and easily.

After installing Kutools for Excel, please do as this:

1. Click a cell where you want to put the result.

2. Click Kutools > Formula Helper > Formula Helper, see screenshot:

3. In the Formulas Helper dialog box:

  • Select Statistical option from the Formula Type drop down list;
  • Then choose Count cells with unique values (include the first duplicate) from the Choose a fromula list box;
  • In the Arguments input section, select the list of cells that you want to count unique values.

4. Then click Ok button, the duplicate values which only appear only once has been calculated at once, see screenshot:

Download and free trial Kutools for Excel Now !


More relative articles:

  • Count Unique Values Based On Another Column
  • It may be common for us to count unique values in only one column, but, in this article, I will talk about how to count unique values based on another column. For example, I have the following two columns data, now, I need count the unique names in column B based on the content of column A to get the following result.
  • Countif With Multiple Criteria In Excel
  • In Excel, COUNTIF function may help us to calculate the number of a certain value in a list. But sometimes, we need to use multiple criteria for counting, this will be more complex, today, I will talk about some items for counting with multiple criteria.
  • Countif A Specific Value Across Multiple Worksheets
  • Supposing, I have multiple worksheets which contains following data, and now, I want to get the number of occurrence of a specific value “Excel” from theses worksheets. How could I count a specific values across multiple worksheet?

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (2)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
La formule fonctionne très bien, sauf que pour mon cas j'aurais besoin de compter les doublons une seul fois avec deux conditions j'ai utilisé la fonction nb.si.ens mais ca na pas marché.

Pouvez vous m'aider svp
Merci beaucoup
This comment was minimized by the moderator on the site
Olá, é possível substituir o CONT.SE por CONT.SES?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations