复制当前文本并更改它

Copy current text and change it

我的电子表格中有很多网址,我需要按以下格式上传:

目前是这样的:

http://url.com/this_is_an_example
http://url.com/another_example

我需要这样的:

http://url.com/this_is_an_example, http://url.com/this-is-an-example
http://url.com/another_example, , http://url.com/another-example

我知道我可以使用查找和替换将 _ 替换为 - 但我如何将相同的 url 复制到现有的旁边?

我正在使用 Openoffice Calc

谢谢

这两种解决方案之间的唯一区别是用于连接和替换语句的定界符,即“;”与 ",".

Openoffice解决方案:

=CONCATENATE(A1;", ";SUBSTITUTE(A1;"_";"-"))

结果

Excel 解法:

=CONCATENATE(A1,", ",SUBSTITUTE(A1,"_","-"))

结果

I know i can just use find & replace to replace _ with - but how can i copy the same url next to the exisiting one?

最后,您可以隐藏原始列并保留自定义列。