Results 1 to 8 of 8

Finding duplicates and adding their adjacent cells

Threaded View

trier Finding duplicates and adding... 03-16-2012, 04:55 AM
Prawny Re: Finding duplicates and... 03-16-2012, 05:42 AM
trier Re: Finding duplicates and... 03-16-2012, 02:19 PM
Marcol Re: Finding duplicates and... 03-16-2012, 06:06 AM
trier Re: Finding duplicates and... 03-16-2012, 02:25 PM
Marcol Re: Finding duplicates and... 03-17-2012, 04:31 AM
trier Re: Finding duplicates and... 03-17-2012, 02:48 PM
jimjones666 Re: Finding duplicates and... 08-17-2014, 02:58 AM
  1. #1
    Registered User
    Join Date
    03-16-2012
    Location
    Wellington
    MS-Off Ver
    Excel 2010
    Posts
    20

    Finding duplicates and adding their adjacent cells

    Hi, I'm very new to vba and haven't found a thread that matches exactly what I need, although I apologise if this has been discussed before.

    I have thousands of rows to compare each time. I need to find duplicate entries in column A and then add their values which are in column B to put in column C. There is only one worksheet each time.

    Col A can be numbers only or a mixture of numbers and letters. It starts looking like:

    Col A Col B
    THH1234 1
    TKK254 1
    124892 2
    6935 1
    6935 5
    C09654 2

    I want it to end like this below where 6935 are recognised as duplicates and their values of 1 & 5 added to be 6. It doesn't matter if the 6 is in the row for the first or second duplicate.

    Col A Col B Col C
    THH1234 1
    TKK254 1
    124892 2
    6935 1
    6935 5 6
    C09654 2

    It would be ideal if I didn't have to sort column A so that duplicates are next to each other before running the macro but that's not important. Thanks any help is appreciated.
    Last edited by trier; 03-17-2012 at 02:50 PM.

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