+ Reply to Thread
Results 1 to 3 of 3

Count then Delete Duplicate Values and put count next to now unique value

  1. #1
    Registered User
    Join Date
    01-14-2009
    Location
    Earth
    MS-Off Ver
    2007
    Posts
    43

    Count then Delete Duplicate Values and put count next to now unique value

    I'm not really sure how to approach this one. I'm guessing a loop... but maybe there is a builtin function?

    What I'm trying to do is just go down A:A, which has 1000+ rows with data. I'm dealing with, basically a list, like the one below.

    Col A
    111
    222
    333
    333
    333
    333
    444
    444
    555
    I want the list above to look like the one below. (I hope this makes sense)
    Col A Col B
    111 1
    222 1
    333 4
    444 2
    555 1
    I am pretty sure I could use the following code after a loop. I'm just not sure how to approach the whole counting each time a new duplicate value is found.
    Please Login or Register  to view this content.
    Last edited by flipjarg; 11-12-2014 at 04:24 PM. Reason: Solved!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Count then Delete Duplicate Values and put count next to now unique value

    run this macro:=

    Please Login or Register  to view this content.
    http://office.microsoft.com/en-gb/ex...001034626.aspx
    Last edited by mehmetcik; 11-12-2014 at 04:47 PM.

  3. #3
    Registered User
    Join Date
    01-14-2009
    Location
    Earth
    MS-Off Ver
    2007
    Posts
    43

    Re: Count then Delete Duplicate Values and put count next to now unique value

    Quote Originally Posted by mehmetcik View Post
    run this macro:=

    Please Login or Register  to view this content.
    http://office.microsoft.com/en-gb/ex...001034626.aspx
    Holly crap! That is way less code than I thought would be needed. It works exactly as I need. Thank you!

+ 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] Find count of Unique or Duplicate Values based on Concatenated values in 2 columns
    By bdicarlo1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2014, 12:42 AM
  2. [SOLVED] ListBox of Unique values to also display Duplicate(Count)
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-26-2013, 04:49 PM
  3. [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
  4. Replies: 0
    Last Post: 03-22-2012, 08:44 PM
  5. Replies: 3
    Last Post: 03-08-2005, 03:06 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