Shorten string

Xx7

Board Regular
Joined
Jan 29, 2011
Messages
126
I have these on 2 rows

Row 1
Code:
[URL=http://img31.imageshack.us/i/bjalskf.jpg/][IMAG]http://img31.imageshack.us/img31/3sfjld/salfdj.jpg[/IMAG]

Row 2
Code:
[URL=http://img816.imageshack.us/i/254593ddsf.jpg/][IMAG]http://img816.imageshack.us/img8886/5673/254sdfd55.jpg[/IMAG]


I want to make it

Row 1
Code:
[IMAG]http://img31.imageshack.us/img31/3sfjld/salfdj.jpg[/IMAG]

Row 2
Code:
[IMAG]http://img816.imageshack.us/img8886/5673/254sdfd55.jpg[/IMAG]
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi Xx7,

Try this formula - just change the cell reference (from A2) to suit:

=TRIM(MID(A2,SEARCH("[IMAG]",A2)+6,LEN(A2)-SEARCH("[IMAG]",A2)+6))

This can then be converted to a value and put back to the originating cell.

HTH

Robert
 
Upvote 0
This regular formula returns the right-side text of cell A1, beginning with the [IMAG]:
Code:
B1: =MID(A1,SEARCH("[imag]",A1),LEN(A1))

Is that something you can work with?
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,558
Members
452,928
Latest member
101blockchains

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