Blessy Clara
Board Regular
- Joined
- Mar 28, 2010
- Messages
- 201
I have two Tables in two sheets:
Table 1 contains the list of all cities
Table 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Pakenham[/TD]
[/TR]
[TR]
[TD]Point Cook[/TD]
[/TR]
[TR]
[TD]Ocean Grove[/TD]
[/TR]
[TR]
[TD]Melbourne[/TD]
[/TR]
[TR]
[TD]Dianella[/TD]
[/TR]
</tbody>[/TABLE]
Table 2 Contains the Data - the string from which the City has to be separated from address
To Note: The city Name may be a single or two space ex - Mildura or Glen Iris - So space separation from right not possible
Address
[TABLE="width: 500"]
<tbody>[TR]
[TD]22 Alma Road, St Kilda[/TD]
[/TR]
[TR]
[TD]22 Carrington Drive Pakenham[/TD]
[/TR]
[TR]
[TD]270 Sanctuary Lakes south BVD Point Cook[/TD]
[/TR]
[TR]
[TD]PO Box 366 Ocean Grove[/TD]
[/TR]
[TR]
[TD]Po Box 411 Heidelberg[/TD]
[/TR]
[TR]
[TD]PO BOX 421, Vermont[/TD]
[/TR]
[TR]
[TD]PO Box 5134 MELBOURNE[/TD]
[/TR]
</tbody>[/TABLE]
Requirement - Separate City from address using city reference from table 1-city (Case insensitive to note, as data has a mix of cases)
[TABLE="width: 500"]
<tbody>[TR]
[TD]22 Alma Road [/TD]
[TD]St Kilda[/TD]
[/TR]
[TR]
[TD]22 Carrington Drive [/TD]
[TD]Pakenham[/TD]
[/TR]
[TR]
[TD]270 Sanctuary Lakes south BVD [/TD]
[TD]Point Cook[/TD]
[/TR]
[TR]
[TD]PO Box 366 [/TD]
[TD]Ocean Grove[/TD]
[/TR]
[TR]
[TD]Po Box 411 [/TD]
[TD]Heidelberg[/TD]
[/TR]
[TR]
[TD]PO BOX 421 [/TD]
[TD]Vermont[/TD]
[/TR]
[TR]
[TD]PO Box 5134 [/TD]
[TD]MELBOURNE[/TD]
[/TR]
</tbody>[/TABLE]
Thank you for taking a moment to read, and further help
Table 1 contains the list of all cities
Table 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Pakenham[/TD]
[/TR]
[TR]
[TD]Point Cook[/TD]
[/TR]
[TR]
[TD]Ocean Grove[/TD]
[/TR]
[TR]
[TD]Melbourne[/TD]
[/TR]
[TR]
[TD]Dianella[/TD]
[/TR]
</tbody>[/TABLE]
Table 2 Contains the Data - the string from which the City has to be separated from address
To Note: The city Name may be a single or two space ex - Mildura or Glen Iris - So space separation from right not possible
Address
[TABLE="width: 500"]
<tbody>[TR]
[TD]22 Alma Road, St Kilda[/TD]
[/TR]
[TR]
[TD]22 Carrington Drive Pakenham[/TD]
[/TR]
[TR]
[TD]270 Sanctuary Lakes south BVD Point Cook[/TD]
[/TR]
[TR]
[TD]PO Box 366 Ocean Grove[/TD]
[/TR]
[TR]
[TD]Po Box 411 Heidelberg[/TD]
[/TR]
[TR]
[TD]PO BOX 421, Vermont[/TD]
[/TR]
[TR]
[TD]PO Box 5134 MELBOURNE[/TD]
[/TR]
</tbody>[/TABLE]
Requirement - Separate City from address using city reference from table 1-city (Case insensitive to note, as data has a mix of cases)
[TABLE="width: 500"]
<tbody>[TR]
[TD]22 Alma Road [/TD]
[TD]St Kilda[/TD]
[/TR]
[TR]
[TD]22 Carrington Drive [/TD]
[TD]Pakenham[/TD]
[/TR]
[TR]
[TD]270 Sanctuary Lakes south BVD [/TD]
[TD]Point Cook[/TD]
[/TR]
[TR]
[TD]PO Box 366 [/TD]
[TD]Ocean Grove[/TD]
[/TR]
[TR]
[TD]Po Box 411 [/TD]
[TD]Heidelberg[/TD]
[/TR]
[TR]
[TD]PO BOX 421 [/TD]
[TD]Vermont[/TD]
[/TR]
[TR]
[TD]PO Box 5134 [/TD]
[TD]MELBOURNE[/TD]
[/TR]
</tbody>[/TABLE]
Thank you for taking a moment to read, and further help