+ Reply to Thread
Results 1 to 5 of 5

Count Duplicates in column

  1. #1
    Registered User
    Join Date
    07-17-2014
    Location
    Chico, CA
    MS-Off Ver
    MS Office 2010
    Posts
    20

    Count Duplicates in column

    Hello all,

    I have a feeling a solution to this will require VBA but I don't know much at all about VBA so hopefully I'm wrong. So I have a column with something like 20 thousand rows. I would like a formula that basically checks the column for duplicates and numbers the sets of duplicates. So if there are 5 cells that are all "Server10" I would like for the formula to place a one next to all of those cells. And for the next set of duplicates it finds I would for it to place a 2 next to all of those cells. Essentially my end goal is to sort the sheet so that all of the matching duplicates are all together. There might be some simple filtering method here that I'm overlooking but if there is..... I'm overlooking it lol. And to be clear I don't want to eliminate the duplicates, I just want them grouped together.

    I've attached a very simple example of what I would like the formula to do. The cells in the right column would be the result of the formula.

    Thanks in advance for any advice provided,

    SomeDude0nline
    Attached Images Attached Images

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Count Duplicates in column

    Try DATA, SORT, SORT BY, column with the data present in it...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,279

    Re: Count Duplicates in column

    Suppose your data in column "a2" & "b2"
    In column "c2" both columns merge with formula:
    HTML Code: 
    In column "d2" type formula: (if ans is "true" means duplicate)
    HTML Code: 
    For find out how many dupplicate value formula is:
    HTML Code: 
    Hope your problem solved.
    If you satisfy with solution plz add reputation.

  4. #4
    Registered User
    Join Date
    07-17-2014
    Location
    Chico, CA
    MS-Off Ver
    MS Office 2010
    Posts
    20

    Re: Count Duplicates in column

    Glenn,

    Wow, I feel really stupid right now. I was about to respond saying something like "thanks but the data isn't quite as simple as the example" but then I realized probably what you were too nice to say: I'm an idiot and if it's a duplicate then sorting alphabetically will group the duplicates together lol.

    Sorry for my ignorance, I guess I was overlooking something simple.

    Thanks again for the input,

    SomeDude0nline

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Count Duplicates in column

    The more time you spend here, you'll realise that ALL of us have moments when the bl*&%y obvious simply passes us by. Some people want everything to happen automatically and a more complicated solution is needed. Best to start easy & work up....

+ 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 Filtered duplicates in 1 Column
    By chico.corrales in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2013, 11:21 PM
  2. Total count of duplicates in a column
    By stockgoblin42 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-13-2013, 03:06 PM
  3. [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
  4. [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
  5. Count duplicates and put their number in next column
    By wali in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-21-2011, 05:59 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