replace - Excel - How to add value after 3rd / -


i have excel file 1 value need edited. it's link image. link template looks this:

this

http://website.com/something/brand/product/product_name/image.jpg 

i need add 'medium' after /product/

so template

this

http://website.com/something/brand/product/medium/product_name/image.jpg 

example:

http://website.com/cake/cutie/bigcakes/pink_caramel/hr74.jpg 

would

http://website.com/cake/cutie/bigcakes/medium/pink_caramel/hr74.jpg 

of course products different, can maybe like, add medium/ after 6th / ? don't know how else, huge file thousands of products, brands , product names.

well, using formula of @skipintro, can use concatenate, left , mid formulae desired result.

=concatenate(left(a1,find(char(1),substitute(a1,"/",char(1),6))),"medium",mid(a1,find(char(1),substitute(a1,"/",char(1),6)),100)) 

this assumes link template in cell a1. if it's in other cell, replace a1 required cell address.

edit:

i overlooked simpler 1 ^^; :

=substitute(substitute(a1,"/",char(1),6),char(1),"/medium/") 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -