Split Business Name and Address into 2 fields
On Sat, 24 May 2014 23:49:53 +0100, Simontan wrote:
I need help to split a field that currently contains a business name and
an address. Here is a few examples listed below. The split should be the
occurrence of the first numeral. Thank you!
SHAMPOOCHES 3124 CROW CANYON PL A
TAIL WAGGERS PET & HOME CARE 3101 LAKEMONT DR 3
RAD REPUBLIC THREADS 5355 CYPRESS HAWK CT
FREDDIE MAC BRAND 111 DEERWOOD RD 200
MEN'S WEARHOUSE, THE #2168 2441 SAN RAMON VALLEY BLV
The position of the first numeral can be found using the formula:
MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))
Hence, the business name:
=TRIM(LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0 123456789"))-1))
and the address:
=MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456 789")),99)
(the '99' is merely sum number sure to be larger than the longest address)
|