part of text in cell copy to another cell

PH6

New Member
Joined
Oct 14, 2011
Messages
2
Hi :eeek:

This is the question:

in a cell: word1 word2 word3 word4 word5 etc

I want to take out of this cell the text start with SO***** (2 letters+5 digits).
This text is placed random in the cell.

Pls advs, is this possible with excel 2010 or only with VBA?

Thnks in advance,

Peter
 
That is possible.

=MID(A1,FIND("SO",A1),7)

I used cell A1 as an example.

It will be more difficult however if SO can occur multiple times in the same cell, followed yes or no by 5 digits. Is this the case?
 
Upvote 0
Can you use this?
Excel Workbook
ABC
1PeterPeter
2PaulPaul
3MarySO12345MarySO12345
4BobBob
5TeSO99999dTedSO99999
6CarolCarol
7AliceAlice
Sheet1
Excel 2007
Cell Formulas
RangeFormula
B1=SUBSTITUTE(A1,C1,"")
C1=IF(ISERROR(MID(A1,FIND("SO",A1),7)),"",MID(A1,FIND("SO",A1),7))
 
Upvote 0
ahhhhummm,

Great, this works!! (no multiple times, lucky!)

Thanks for this quick response.

Peter
 
Upvote 0

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