ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Splitting multiple cell contents containing values at end (https://www.excelbanter.com/excel-worksheet-functions/27534-splitting-multiple-cell-contents-containing-values-end.html)

Syns

Splitting multiple cell contents containing values at end
 
I am working on an excell sheet and have over 6000 adresses in one column.At
the end of each row in this column, the postal code of the area. Each cell is
merged.
I need to split the postal code from the adress in each row, but to to it
row by row will take me forever.

Is there any way which I can use to take out only the values at the end of a
single row or select the last 4 digits of the whole column at once.
EXAMPLE:

P O BOX 151 MOSSELBAY 6500 Split to:PO Box 151 Mosselbay
6500
48 KARATARA CATHRINE LA MONTAGNE 0184 Split to:................
0184
P.O. BOX 16195 ATLASVILLE 1465 Split to:...............................
1465

6500 of these adresses continues in the same format.

Please help!
Syndy

Duke Carey

If postal code is ALWAYS and ONLY the last four characters:

=LEFT(address,LEN(address)-5)
gives you the address, & it assumes there's one space before the postal code

=RIGHT(address,4)
gives you the postal code


"Syns" wrote:

I am working on an excell sheet and have over 6000 adresses in one column.At
the end of each row in this column, the postal code of the area. Each cell is
merged.
I need to split the postal code from the adress in each row, but to to it
row by row will take me forever.

Is there any way which I can use to take out only the values at the end of a
single row or select the last 4 digits of the whole column at once.
EXAMPLE:

P O BOX 151 MOSSELBAY 6500 Split to:PO Box 151 Mosselbay
6500
48 KARATARA CATHRINE LA MONTAGNE 0184 Split to:................
0184
P.O. BOX 16195 ATLASVILLE 1465 Split to:...............................
1465

6500 of these adresses continues in the same format.

Please help!
Syndy


RagDyeR

Try this:

=RIGHT(A1,4)


--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Syns" wrote in message
...
I am working on an excell sheet and have over 6000 adresses in one column.At
the end of each row in this column, the postal code of the area. Each cell
is
merged.
I need to split the postal code from the adress in each row, but to to it
row by row will take me forever.

Is there any way which I can use to take out only the values at the end of a
single row or select the last 4 digits of the whole column at once.
EXAMPLE:

P O BOX 151 MOSSELBAY 6500 Split to:PO Box 151 Mosselbay
6500
48 KARATARA CATHRINE LA MONTAGNE 0184 Split to:................
0184
P.O. BOX 16195 ATLASVILLE 1465 Split to:...............................
1465

6500 of these adresses continues in the same format.

Please help!
Syndy




All times are GMT +1. The time now is 01:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com