如何在Excel中拆解地址?
我有这样的地址:
- 邮政编码始终为 4 位数字
- 但是在布达佩斯和伦敦这样的城市,有一个像XV.和V这样的区号。
- 我知道城市名称女巫包含地区编号。
5555 London XV. Apple Street 77.
6666 Budapest V. Banana Street 6.
7777 Southampton Big street 5.
8888 Southampton Small street 6.
文本到列 Excel
不幸的是,当我使用空格作为分隔符时,这种格式是这样的:
5555 |London |XV. |Apple Street |77.
6666 |Budapest |V. |Banana Street |6.
7777 |Southampton |Big |street |5.
8888 |Southampton |Small| street |6.
如果我使用空格和点作为分隔符仍然不能正常工作。
我想要这个结构:
5555 |London XV. |Apple Street |77.
6666 |Budapest V. |Banana Street |6.
7777 |Southampton |Big |street |5.
8888 |Southampton |Small| street |6.
我应该使用哪些功能?
我可以想象这不是你要找的,但是当我过去需要处理这种情况时,我做了以下工作:
Replace "London XV" by "London_XV" (using an underscore or a hyphen)
Replace "Budapest V" by "Budapest_V" (same thing)
...
(You can easily do this in a simple text editor, like Notepad, Notepad++, ...)
Then you do the Text To Columns (or you do this while importing the textfile).
Afterwards, you replace "London_XV" back by "London XV" and "Budapest_V" by "Budapest V", ...
祝你好运