Hello!
I have Googled and searched the forum here, but I haven't been able to find the exact solution I'm looking for. The context of this request is that I'm doing a database update. The source of the records includes addresses, some of which have firm names in them, some of which do not. Our database has a firm attribute table that I need to match up with all of these records (17,000+) so that everyone gets categorized to their proper firm. I have been doing this by hand, downloading the firm attribute table, sorting the excel file with the records, and copying and pasting the appropriate firm name and firm size into the Excel sheet that I'll import. Here's what the 2 worksheets look like.
Source of records:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Last Name
[/TD]
[TD]First Name
[/TD]
[TD]Address1
[/TD]
[TD]Address2
[/TD]
[TD]City[/TD]
[TD]State
[/TD]
[/TR]
[TR]
[TD]Smith
[/TD]
[TD]Bob
[/TD]
[TD]12345 Main St
[/TD]
[TD][/TD]
[TD]Oregon City
[/TD]
[TD]OR
[/TD]
[/TR]
[TR]
[TD]Jones
[/TD]
[TD]Mary
[/TD]
[TD]Mann Mann Klor and Jones
[/TD]
[TD]1212 SW 5th Ave
[/TD]
[TD]Portland
[/TD]
[TD]OR
[/TD]
[/TR]
[TR]
[TD]Evans
[/TD]
[TD]Mike
[/TD]
[TD]US Department of Justice
[/TD]
[TD]999 E 5th
[/TD]
[TD]Eugene
[/TD]
[TD]OR
[/TD]
[/TR]
[TR]
[TD]Nelson
[/TD]
[TD]Diane
[/TD]
[TD]Stoel Rives
[/TD]
[TD]888 SW 9th
[/TD]
[TD]Portland
[/TD]
[TD]OR
[/TD]
[/TR]
[TR]
[TD]Potter
[/TD]
[TD]Carl
[/TD]
[TD]222 Madison Ave
[/TD]
[TD][/TD]
[TD]New York
[/TD]
[TD]NY
[/TD]
[/TR]
</tbody>[/TABLE]
Firm Attribute Table:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]FIRM
[/TD]
[TD]FIRMSIZE
[/TD]
[/TR]
[TR]
[TD]Anderson Anderson Sm
[/TD]
[TD]Midsize
[/TD]
[/TR]
[TR]
[TD]Mann Mann Klor and Jo
[/TD]
[TD]Large
[/TD]
[/TR]
[TR]
[TD]Stoel Rives
[/TD]
[TD]Large
[/TD]
[/TR]
[TR]
[TD]US Department of Just
[/TD]
[TD]US Govt
[/TD]
[/TR]
</tbody>[/TABLE]
An additional complication, as you can see, is that my database truncates the firm field to 20 characters, so it will not always be an exact match to the address1 field.
So I guess I need something that looks at each address1 field in my import file, compares to see if the first 20 characters match anything in the FIRM column of the firm attribute table and, if so, copies the values in both the FIRM and FIRMSIZE cells next to the cell that it matches. Does that make sense?
I will still nave a bit of cleaning up to do, since there can be spelling errors/inconsistencies when people enter their own address information. But this would save me so much time. I'd be most appreciative if someone could help me work it out.
Best,
Shari
I have Googled and searched the forum here, but I haven't been able to find the exact solution I'm looking for. The context of this request is that I'm doing a database update. The source of the records includes addresses, some of which have firm names in them, some of which do not. Our database has a firm attribute table that I need to match up with all of these records (17,000+) so that everyone gets categorized to their proper firm. I have been doing this by hand, downloading the firm attribute table, sorting the excel file with the records, and copying and pasting the appropriate firm name and firm size into the Excel sheet that I'll import. Here's what the 2 worksheets look like.
Source of records:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Last Name
[/TD]
[TD]First Name
[/TD]
[TD]Address1
[/TD]
[TD]Address2
[/TD]
[TD]City[/TD]
[TD]State
[/TD]
[/TR]
[TR]
[TD]Smith
[/TD]
[TD]Bob
[/TD]
[TD]12345 Main St
[/TD]
[TD][/TD]
[TD]Oregon City
[/TD]
[TD]OR
[/TD]
[/TR]
[TR]
[TD]Jones
[/TD]
[TD]Mary
[/TD]
[TD]Mann Mann Klor and Jones
[/TD]
[TD]1212 SW 5th Ave
[/TD]
[TD]Portland
[/TD]
[TD]OR
[/TD]
[/TR]
[TR]
[TD]Evans
[/TD]
[TD]Mike
[/TD]
[TD]US Department of Justice
[/TD]
[TD]999 E 5th
[/TD]
[TD]Eugene
[/TD]
[TD]OR
[/TD]
[/TR]
[TR]
[TD]Nelson
[/TD]
[TD]Diane
[/TD]
[TD]Stoel Rives
[/TD]
[TD]888 SW 9th
[/TD]
[TD]Portland
[/TD]
[TD]OR
[/TD]
[/TR]
[TR]
[TD]Potter
[/TD]
[TD]Carl
[/TD]
[TD]222 Madison Ave
[/TD]
[TD][/TD]
[TD]New York
[/TD]
[TD]NY
[/TD]
[/TR]
</tbody>[/TABLE]
Firm Attribute Table:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]FIRM
[/TD]
[TD]FIRMSIZE
[/TD]
[/TR]
[TR]
[TD]Anderson Anderson Sm
[/TD]
[TD]Midsize
[/TD]
[/TR]
[TR]
[TD]Mann Mann Klor and Jo
[/TD]
[TD]Large
[/TD]
[/TR]
[TR]
[TD]Stoel Rives
[/TD]
[TD]Large
[/TD]
[/TR]
[TR]
[TD]US Department of Just
[/TD]
[TD]US Govt
[/TD]
[/TR]
</tbody>[/TABLE]
An additional complication, as you can see, is that my database truncates the firm field to 20 characters, so it will not always be an exact match to the address1 field.
So I guess I need something that looks at each address1 field in my import file, compares to see if the first 20 characters match anything in the FIRM column of the firm attribute table and, if so, copies the values in both the FIRM and FIRMSIZE cells next to the cell that it matches. Does that make sense?
I will still nave a bit of cleaning up to do, since there can be spelling errors/inconsistencies when people enter their own address information. But this would save me so much time. I'd be most appreciative if someone could help me work it out.
Best,
Shari