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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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
1Hi, my name is corzo Create Tests for Organizational Training and Certification Programs ? Test.comhttp://test.com
2http://test.com

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
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)

<tbody>
</tbody>

<tbody>
</tbody>
 
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,215,611
Messages
6,125,829
Members
449,266
Latest member
davinroach

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