Reputation: 1553
I have lots of URLs in an spreadsheet, I need upload it in the following format:
It is currently like this:
http://url.com/this_is_an_example
http://url.com/another_example
I need it like this:
http://url.com/this_is_an_example, http://url.com/this-is-an-example
http://url.com/another_example, , http://url.com/another-example
I know i can just use find & replace to replace _ with - but how can i copy the same url next to the exisiting one?
I'm using Openoffice Calc
Thanks
Upvotes: 0
Views: 38
Reputation: 3808
The only difference between the two solutions is the delimiter used for the concatenate and substitute statements i.e. ";" vs ",".
Openoffice Solution:
=CONCATENATE(A1;", ";SUBSTITUTE(A1;"_";"-"))
Result
Excel Solution:
=CONCATENATE(A1,", ",SUBSTITUTE(A1,"_","-"))
Result
I know i can just use find & replace to replace _ with - but how can i copy the same url next to the exisiting one?
In the end, you could hide the original column and leave the custom column.
Upvotes: 2