+ Reply to Thread
Results 1 to 4 of 4

Handling Non-Unique Cell Values

  1. #1
    Registered User
    Join Date
    10-13-2009
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2003
    Posts
    2

    Handling Non-Unique Cell Values

    I have attached a sample spreadsheet. I'm looking for a macro that will take column one which contains Company names which are sometimes duplicated and append an incremental number based on the number of occurrences to the end of the company forcing it to be unique. Column 2 has the example of the results I would like to see. Has anyone got a macro that I could use that would allow me to select the company column, run the macro, and it update the values in that column to append the incremental number?
    Attached Files Attached Files
    Last edited by aharmon426; 10-13-2009 at 08:12 PM.

  2. #2
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421

    Re: Handling Non-Unique Cell Values

    I put this formula in b1 and copied down the column (This works as long as column A is sorted alphabetically to group common names together)

    Please Login or Register  to view this content.
    I help because of the Pavlovian dog that resides in the inner me...so if you are happy with the results, please add to my reputation. It helps keep me motivated!



    Please mark your threads as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    10-08-2006
    Location
    Walnut, CA
    MS-Off Ver
    2003,2010, Office 365
    Posts
    114

    Re: Handling Non-Unique Cell Values

    Hi,
    Use this formula in B2 and copy down the column B. It should work regardless whether column A is sorted or not.

    Please Login or Register  to view this content.
    Tony

  4. #4
    Registered User
    Join Date
    10-13-2009
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Handling Non-Unique Cell Values

    Thanks for the quick responses.. I mean really quick. I have tested both solutions and they work. You both have saved me a great deal of time.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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