+ Reply to Thread
Results 1 to 9 of 9

Adding a Column based upon on Duplicate Name ?

  1. #1
    Registered User
    Join Date
    07-22-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    12

    Adding a Column based upon on Duplicate Name ?

    I'm an Excel amateur and was hoping for some assistance or suggestions. I need to parse through a large data sheet and add/merge a column if I encounter a duplicate. Here is an example of the current data set:

    Name Port
    AMGT1 50:01:43:80:24:22:79:c4
    AMGT1 50:01:43:80:24:22:79:c6
    zaa1 10:00:00:00:c9:56:de:bb
    zaa1 10:00:00:00:c9:6d:d4:6d
    zad1 10:00:00:00:c9:5c:1e:e0
    zad1 10:00:00:00:c9:89:4e:ee

    Since i have two rows with AMGT1, I need to merge them together so that a new column is created with the new entry so it looks like this:

    AMGT1 50:01:43:80:24:22:79:c4 50:01:43:80:24:22:79:c6

    I'm sure this is possible, I just do not have a clue how to do it. Any assistance would be appreciated. I realize my Title doesn't exactly capture the nature of my issue. Thank you.

  2. #2
    Registered User
    Join Date
    05-21-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Adding a Column based upon on Duplicate Name ?

    Hi gud mrng,

    Please check the attachment. run the macro and see the final solution in the sheet named "result".Let me know if its ok.

    Babu.S
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-22-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Adding a Column based upon on Duplicate Name ?

    Thank you for the reply. I'm not sure why, but the worksheet "result" is blank.

  4. #4
    Registered User
    Join Date
    05-21-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Adding a Column based upon on Duplicate Name ?

    Did you run the macro? it works well for me.

  5. #5
    Registered User
    Join Date
    07-22-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Adding a Column based upon on Duplicate Name ?

    It runs, I see the result set. I just need to add 50:01:43:80:24:22:79:c6 into column C as opposed to joining it to column B

    AMGT1 50:01:43:80:24:22:79:c4 50:01:43:80:24:22:79:c6

    Thanks again.

  6. #6
    Registered User
    Join Date
    05-21-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Adding a Column based upon on Duplicate Name ?

    i have made some adjustments such that 50:01:43:80:24:22:79:c4 will be in column B & 50:01:43:80:24:22:79:c6 will be in column C for AMGT1. let me know if its ok.

    Babu.S
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-22-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Adding a Column based upon on Duplicate Name ?

    Babu,

    Thank you very much! I really appreciate you taking the time to assist me with this. It works perfect.

  8. #8
    Registered User
    Join Date
    07-22-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Adding a Column based upon on Duplicate Name ?

    Sorry Babu,

    When I run this against the fill data set, I get some errors ... The full sheet consists of about 800 lines. Any ideas? I looked at the macro, but I do not understand the syntax.

    Name Port
    BPTBNXIAMGT1 50:01:43:80:24:22:79:c4 50:01:43:80:24:22:79:c6
    cazaa1 10:00:00:00:c9:56:de:bb 10:00:00:00:c9:6d:d4:6d
    cazad1 10:00:00:00:c9:5c:1e:e0 10:00:00:00:c9:89:4e:ee
    cazap1 #VALUE!
    cazap9 #VALUE!
    dove #VALUE!
    drah #VALUE!
    dr-bi
    I0510
    I4302
    I4302
    maynard

  9. #9
    Registered User
    Join Date
    05-21-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Adding a Column based upon on Duplicate Name ?

    Could you pls attach the template file removing sensitive datas?

+ 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. Remove rows with duplicate values in one column based on value of another column
    By jolleyje in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-15-2013, 06:20 AM
  2. Replies: 3
    Last Post: 11-08-2012, 09:29 PM
  3. Replies: 1
    Last Post: 06-25-2012, 06:58 AM
  4. Adding a duplicate column to the right.
    By penfold1992 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-10-2012, 07:16 PM
  5. Replies: 3
    Last Post: 07-26-2005, 08:05 PM

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