Looking from left and right till integer/non text

Benjaminmin

Board Regular
Joined
Nov 20, 2009
Messages
116
ola,

I'm trying to separate out key words from stock text into new columns .. i.e.

"#2 Codexis vs #15 Propel Fuels"
"#3 Sapphire Energy vs #14 Mendel Biotechnologies"

To two columns showing:
Codexis and then in next column Proper Fuels
Sapphire Energy and next column Mendel Biotechnologies

i.e. look from right and left until a key marker e.g. a number or as above a #?
Can't seem to do it as obviously text length and word numbers is variable

To complicate some of the company names have an integer in them!

any help much appreciated and sorry if this is a bit basic.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Basically I want to use something that could work like LEFT or RIGHT until a wildcard.
e.g. from the right until "#**"

Is this possible?
 
Upvote 0
If you use

=FIND("#",A1,2)

that should tell you at what position the second # is

then to split the string

=LEFT(A1,FIND("#",A1,2)-1)

is the first half

=MID(A1,FIND("#",A1,2)+1,255)

is the second

HTH
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,672
Members
452,937
Latest member
Bhg1984

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