2

I have the following link in excel:

http://en.wikipedia.org/wiki/Melon_Bicycles

I would like to retrieve the link as: http://en.wikipedia.org

In google doc I used: =REGEXEXTRACT(A1; "https?:\/\/(.[^\/]+)"), whereas A1 is the cell with the unformated link.

Any recommendation how to implement that in excel 2010?

ROMANIA_engineer
  • 51,252
  • 26
  • 196
  • 186
Carol.Kar
  • 3,775
  • 32
  • 114
  • 229
  • 1
    See answer from http://stackoverflow.com/questions/22542834/how-to-use-regular-expressions-regex-in-microsoft-excel-both-in-cell-and-loops – Andrey Ganin Mar 03 '15 at 14:13

1 Answers1

1

A simple approach would be to use LEFT with FIND. Something like this

=LEFT(A1,FIND("/",A1,9))

enter image description here

Pankaj Jaju
  • 5,203
  • 2
  • 24
  • 39