+ Reply to Thread
Results 1 to 10 of 10

change column a duplicates -> unique values for column b

  1. #1
    Registered User
    Join Date
    07-23-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    6

    change column a duplicates -> unique values for column b

    sorry for the lack of experience and knowledge in excel macros. If anyone knows of some code that can complete this task please direct me to the source!

    I need to find all duplicates in Column A, for any number of rows, and then add a incremental _# so they are no longer duplicates.

    Column A

    A
    A
    A
    b
    b
    c
    C
    C
    c

    Column B

    A_1
    A_2
    A_3
    b_1
    b_2
    c_1
    C_2
    C_3
    c_4

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: change column a duplicates -> unique values for column b

    If it's just that, you can use.

    b1
    Please Login or Register  to view this content.
    and drag down.

    Then you never get duplicated values.

    Mark that this is not the same result as you posted.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    07-23-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: change column a duplicates -> unique values for column b

    That is close, and I actually came across that solution, but the entire issue revolves around grouping the duplicates and incrementing from the start of each group

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: change column a duplicates -> unique values for column b

    The dutch formula is

    Please Login or Register  to view this content.
    The English formula should be
    b1
    Please Login or Register  to view this content.
    And drag down.

    I have to change the formula (use the one below):

    b1
    Please Login or Register  to view this content.
    Last edited by oeldere; 07-23-2012 at 04:45 PM. Reason: I have to change the formula (use the one below):

  5. #5
    Registered User
    Join Date
    07-23-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: change column a duplicates -> unique values for column b

    Thank you very much. This is so so close to being perfect. I need to add an IF statement to check is Column A has no duplicate, if it doesn't than concatenate no value.

    Please Login or Register  to view this content.
    results in

    Column A

    a
    b
    b
    c
    d
    d
    d
    d
    e

    Column B

    a_1
    b_1
    b_2
    c_1
    d_1
    d_2
    d_3
    d_4
    e_1

    Would like Colum b to equal

    a
    b_1
    b_2
    c
    d_1
    d_2
    d_3
    d_4
    e

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: change column a duplicates -> unique values for column b

    I don't get the question.

    You rename collumn A to an non duplicated collumn B.

    Why should you want to change collumn A (it has duplicated values in it)?

    ---------- Post added at 04:11 PM ---------- Previous post was at 04:06 PM ----------

    the dutch version is

    b1
    Please Login or Register  to view this content.
    The english version should be:

    b1
    Please Login or Register  to view this content.
    Please reply if this is what youre up to.
    Last edited by oeldere; 07-23-2012 at 05:15 PM.

  7. #7
    Registered User
    Join Date
    07-23-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: change column a duplicates -> unique values for column b

    Sorry I wasn't clear. I hope this helps. If the left column doesn't not have a duplicate, like a and d, then I would not like to concatenate anything.

    a a
    c c_1
    c c_2
    c c_3
    d d
    e e_1
    e e_2

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: change column a duplicates -> unique values for column b

    It is not that is not clear, I don't understand why you want it that way.

    Anyway, it is your question.

    See the solutions in #6.

  9. #9
    Registered User
    Join Date
    07-23-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: change column a duplicates -> unique values for column b

    Sorry I dont know why it didn't work the first time I tried it...but post #6 works perfectly now. Thank you very much oeldere!

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: change column a duplicates -> unique values for column b

    Glad I could help. Thanks for the reply.

    If the question is solved, will you mark your question as solved?

    If you have (other) questions, just ask.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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