Also, can you make one for me to just get rid of any http://; https://; www.; http://www.; https://www.; as well as "/" at the end? Like shown in the example below.
Screen Shot 2016-02-15 at 7.51.53 PM.jpg
Also, can you make one for me to just get rid of any http://; https://; www.; http://www.; https://www.; as well as "/" at the end? Like shown in the example below.
Screen Shot 2016-02-15 at 7.51.53 PM.jpg
Hi
Welcome to board.
If the URL in A1,
in B1
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(LOWER(A1),"https ://",""),"http://",""),"www.","")
and in C1
=LEFT(B1,LEN(B1)-(RIGHT(B1)="/"))
Cheers !
Excel Range to BBCode Table
Use Social Networking Tools If You Like the Answers !
Message to Cross Posters
@ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)
This single formula should do what you want...
=MID(SUBSTITUTE(LEFT(A1,LEN(A1)-(RIGHT(A1)="/")),"www.",""),IFERROR(FIND("://",A1)+3,1),999)
Code:Sub M_snb() Columns(1).Replace "*www.", "" Columns(1).Replace "*://", "" End Sub
Bookmarks