Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Standardizing Addresses Help
We have many people entering addresses into the main database and by
the time we get them the addresses are not in any standard format, i.e, Street, St, St., RR 1, Rt. 1, Rt 1, etc. I'm creating a macro that will examine known problems and change to the new standard but have come across a problem when the search string ends with characters that need to be changed. Here's an example, 501 East Station St as entered should convert to 501 E. Station St. East to E. & Street to St. The problem is when checking for St and replaceing with St. will also change Station to St.ation Selection.Replace What:=" St", Replacement:=" St.", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _ ReplaceFormat:=False This will only happen when the text is at the end of the string as I'm checking for leading and following spaces on the other scans. Hope this makes sense and someone can provide a work around. thx |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Normalizing/Standardizing Data | Excel Discussion (Misc queries) | |||
Standardizing Street Addresses in a Large Address Database | Excel Worksheet Functions | |||
Standardizing date scale in a scatter plot | Excel Discussion (Misc queries) | |||
addresses | Excel Programming | |||
Standardizing Page Set Up for Muliple Sheets | Excel Programming |