TEXT String MID Help needed

seenfresh

Well-known Member
Joined
Jul 12, 2006
Messages
1,141
I have a situation where I would like to be able to extract a certain number of characters in a given string... for example:

Joe Joe KLTV 300x600
Joe KLTV 728x90 Leader

From the two examples I would like to be able to just extract the "KLTV" Upper Case call letters...

I'm assuming code must be involved... Is their a way to pull the text of a string where the succeeding text is Upper Case...?

It doesn't seem possible to me due to the variation in location of the call letter I need, but Any Suggestions would be Awesome!!!

Thanks in advance,

:lol:
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
If all call-letter groups start with a K, it would be simple to use, assuming the data is in B2:
=MID(B2,FIND("K",B2,1),4)
 
Upvote 0
If you have the regular expression functions at http://www.tmehta.com/regexp/add_code.htm you can then use
=RegExpFind(B3,"[A-Z]{2,}")
where B3 contains the text to be searched.

I have a situation where I would like to be able to extract a certain number of characters in a given string... for example:

Joe Joe KLTV 300x600
Joe KLTV 728x90 Leader

From the two examples I would like to be able to just extract the "KLTV" Upper Case call letters...

I'm assuming code must be involved... Is their a way to pull the text of a string where the succeeding text is Upper Case...?

It doesn't seem possible to me due to the variation in location of the call letter I need, but Any Suggestions would be Awesome!!!

Thanks in advance,

:lol:
 
Upvote 0

Forum statistics

Threads
1,223,677
Messages
6,173,791
Members
452,534
Latest member
autodiscreet

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