+ Reply to Thread
Results 1 to 3 of 3

Need to modify a Macro

  1. #1
    Registered User
    Join Date
    04-11-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Need to modify a Macro

    Here is the Macro:

    Please Login or Register  to view this content.
    This is the data that it modifies:

    FamilyName..Address1...FirstName...LastName...Relationship...... Phone #
    10000001.....1234 Rd....John..........Doe...........Father..............1234
    10000002....................John..........Doe..........Other.......... ......5678
    10000002...5678 ln.......John..........Doe...........None .......................
    10000003...2468..........Jane...........Doe...........Grandmother..... ..1234

    And this is the output after the Macro is run:

    FamilyName Address1...FirstName....LastName....Relationship........Phone #
    10000001...1234 Rd.....John.............Doe .........Father...............1234
    10000002...5678 ln......John.............Doe .........Other None........5678
    10000003...2468.........Jane.............Doe .........Grandmother......1234


    What the Macro does is it verifies that a row is a duplication by comparing: FamilyName , FirstName and LastName. Once it's verified the duplication, it combines data when there is a blank... for example, Row 2 (after being run through the Macro) now contains Address1 information AND Phone #. It also aggregates the Relationship column (notice Other and None being combined).

    What I NEED it to do, is I need the aggregation to not happen if the Relationship data is the same (ie; if Rows 2 and 3 have "Mother", the macro makes the final row "Mother Mother" and I need it to just make it "Mother")

    I also need the Address and Phone data that combines, to not only copy over blank cells, but also cells that say "Same".

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Need to modify a Macro

    Please read forum rules - if you x-post a thread provide link(s):

    http://www.mrexcel.com/forum/showthread.php?t=383572

  3. #3
    Registered User
    Join Date
    04-11-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Need to modify a Macro

    Quote Originally Posted by DonkeyOte View Post
    Please read forum rules - if you x-post a thread provide link(s):

    http://www.mrexcel.com/forum/showthread.php?t=383572
    Thanks Donkey... did not realize!

+ 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