I would like a formula to remove a possible zip code from a cell. I get data from a Client Database and want to remove the zip code from the cell as it is duplicated in another cell. All I want is the City/State.
Here is my problem... It is a client database so I do not have control over how the information is input. The field could inculde the zip+0000, just the zip, a blank field or it could be another part of the address. As indicated below.
Excel 2010
<COLGROUP><COL><COL></COLGROUP><THEAD>
</THEAD><TBODY>
[TD="align: center"]265[/TD]
[TD="align: center"]266[/TD]
[TD="align: center"]267[/TD]
[TD="align: center"]268[/TD]
[TD="align: center"]269[/TD]
[TD="align: center"]270[/TD]
[TD="align: center"]271[/TD]
[TD="align: center"]272[/TD]
[TD="align: center"]273[/TD]
</TBODY>
As I see it the formula needs to look for a cell with a comma in it and then after 4 characters to the right remove it, and if no comma exisits, then copy original cell as is.
Thanks for your help!
Here is my problem... It is a client database so I do not have control over how the information is input. The field could inculde the zip+0000, just the zip, a blank field or it could be another part of the address. As indicated below.
Excel 2010
I | |
---|---|
NEW YORK, NY 10020 | |
LOS ANGELES, CA 90067-3100 | |
NEW YORK, NY 10022-2000 | |
NEW YORK, NY 10022 | |
NEW YORK, NY 10022 | |
NEW YORK, NY 10166 | |
NEW YORK, NY 10166 | |
25 MAIN STREET HACKENSACK |
<COLGROUP><COL><COL></COLGROUP><THEAD>
</THEAD><TBODY>
[TD="align: center"]265[/TD]
[TD="align: center"]266[/TD]
[TD="align: center"]267[/TD]
[TD="align: center"]268[/TD]
[TD="align: center"]269[/TD]
[TD="align: center"]270[/TD]
[TD="align: center"]271[/TD]
[TD="align: center"]272[/TD]
[TD="align: center"]273[/TD]
</TBODY>
Additional Contacts
As I see it the formula needs to look for a cell with a comma in it and then after 4 characters to the right remove it, and if no comma exisits, then copy original cell as is.
Thanks for your help!