+ Reply to Thread
Results 1 to 3 of 3

Help auto filing missing address in file

  1. #1
    Registered User
    Join Date
    09-08-2011
    Location
    Birmingham, Alabama
    MS-Off Ver
    Excel 2010
    Posts
    1

    Red face Help auto filing missing address in file

    Need some help. I have a large Excel file that contains multiply records of accounts.
    Every transaction has the account address & purchase information. The records are sorted by account # in the Excel file. However only the last record posted shows the address. We are doing a large conversion of these files and I am having to go thru this large excel file and manually cut and paste the address from last record and post it to all the same accounts that are missing the address.
    Example.
    Account Address City State ZIP
    23234
    23234
    23234 456 Oak Drive Lovely Alabama 35214
    12345
    12345 123 Main Street Hohum Alabama 35242

    So the address is missing from some of the records and I have to manualy copy each address and paste it next to same account number that is missing the address.
    Can anyone give advice on a macro or help me to do this without having to manually copy and paste.
    Thanks so much

  2. #2
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: Help auto filing missing address in file

    If it were me, I'd first create a table -- perhaps from a copy of the data -- that looks for an address and, if it finds one, has the associated account number. Then I'd use this table as a lookup table for the real data, overwriting the addresses for those lines that actually have them.

    If you need help setting this up, please attach a small version of your data file.

  3. #3
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Help auto filing missing address in file

    Hi,

    Have a look at the attachment and run the macro 'Test'. If you have any questions on how it runs or have trouble running it on your actual data then let me know.

    Assumptions:

    1) Data structure as you showed in your example (5 columns)

    Please Login or Register  to view this content.
    2) Column 2 is empty unless it contains the full address in that row.

    3) Account numbers are only 5 digits.

    Good luck.

    abousetta
    Attached Files Attached Files
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

+ 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