Search for URL and copy URL to new cell

corzo

New Member
Joined
Mar 27, 2013
Messages
2
Using Excel 2002.

Search cell for URL, copy URL only, and paste to new cell.

For example:

If A1 contains a URL:
A1 = Hi, my name is corzo http://test.com.

Then copy URL only to new cell:
A2 = http://test.com

Thanks kindly in advance.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
corzo,

Welcome to the MrExcel forum.

Based on your example, how about something like this?


Excel 2007
AB
1Hi, my name is corzo http://test.comhttp://test.com
2http://test.com
Sheet1
Cell Formulas
RangeFormula
B1=MID(A1,FIND("http",A1,1),LEN(A1)-FIND("http",A1,1)+1)
A2=MID(A1,FIND("http",A1,1),LEN(A1)-FIND("http",A1,1)+1)
 
Upvote 0
hiker95, perfect! Thank you very much.


corzo,

Welcome to the MrExcel forum.

Based on your example, how about something like this?

Excel 2007
AB
Hi, my name is corzo Create Tests for Organizational Training and Certification Programs ? Test.comhttp://test.com
http://test.com

<tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]

[TD="align: right"][/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: #E0E0F0"]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: #E0E0F0"]B1[/TH]
[TD="align: left"]=MID(A1,FIND("http",A1,1),LEN(A1)-FIND("http",A1,1)+1)[/TD]
[/TR]
[TR]
[TH="bgcolor: #E0E0F0"]A2[/TH]
[TD="align: left"]=MID(A1,FIND("http",A1,1),LEN(A1)-FIND("http",A1,1)+1)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
corzo,

Thanks for the feedback.

You are very welcome. Glad I could help.

And, come back anytime.
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top