+ Reply to Thread
Results 1 to 7 of 7

count duplicates in column

  1. #1
    Forum Contributor
    Join Date
    02-27-2020
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    447

    Thumbs up count duplicates in column

    Hi,

    I want to create a macro that displays the index number of duplicates of column A in column B. So one column after the second "abraham" should display "2", one column after the third "abraham " should display "3", etc.

    Any input is much appreciated!
    Last edited by MaartenRo; 03-17-2021 at 01:01 AM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: count duplicates in column

    B2:

    =REPT(COUNTIF(A$2:A2,A2),COUNTIF(A$2:A2,A2)>1)
    copy down

  3. #3
    Forum Contributor
    Join Date
    02-27-2020
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    447

    Re: count duplicates in column

    Somehow it doesn't work. I have a dutch version of Excel. Is there a way to do it with a macro?

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: count duplicates in column

    Replace comma with a semi column.

    =REPT(COUNTIF(A$2:A2;A2),COUNTIF(A$2:A2;A2)>1)

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jindon; 03-17-2021 at 05:34 AM. Reason: Your ORIGINAL file attached

  5. #5
    Forum Contributor shank_mis's Avatar
    Join Date
    09-08-2018
    Location
    Delhi
    MS-Off Ver
    2010
    Posts
    128

    Re: count duplicates in column

    =COUNTIF(A$2:A2,A2)
    copy down...

    this is also going to work.
    Shashank Mishra
    Please hit "Add Reputation" Button if you liked the answer.

  6. #6
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: count duplicates in column

    Please Login or Register  to view this content.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: count duplicates in column

    No, no, no, no

    Original question was not like that, see the attachment in my post #4 that was originally uploaded by the OP in his initial post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Count a column without duplicates - VBA Only
    By Scoobster_doo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2017, 01:15 PM
  2. [SOLVED] count duplicates in Column E in all worksheets and write their number in Column H
    By wali in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-13-2015, 06:19 AM
  3. [SOLVED] Count Duplicates in column
    By SomeDude0nline in forum Excel General
    Replies: 4
    Last Post: 07-21-2014, 05:49 PM
  4. [SOLVED] Count Filtered duplicates in 1 Column
    By chico.corrales in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2013, 11:21 PM
  5. Total count of duplicates in a column
    By stockgoblin42 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-13-2013, 03:06 PM
  6. [SOLVED] Count Duplicates in Column A once as long as there is a number higher than 0 in Column B
    By armbands1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2013, 01:46 AM
  7. [SOLVED] Macro to count unique values in a column, enter it in next column, then delete duplicates
    By pmorisse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2013, 03:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1