String search?

tony0682

Board Regular
Joined
May 19, 2005
Messages
164
I'm trying to just get the product name from the following separated from the other information on the right. I have a lot of products listed that are of different lengths.

BEAR PETER BROWN 22OZ BT 12LSE
BEAR RACER 5 IPA 12OZ BT 4/6
BEAR RACER 5 IPA 22OZ BT 12LSE


I want to be able to look at the line and just show the information once it seems a number. Lets say that info is in A1:A3. In B1:B3, it would just show Bear Peter Brown, Bear Racer, and Bear Racer. How would I go about searching for a number in a string and then just showing the info before the number?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I'm trying to just get the product name from the following separated from the other information on the right. I have a lot of products listed that are of different lengths.

BEAR PETER BROWN 22OZ BT 12LSE
BEAR RACER 5 IPA 12OZ BT 4/6
BEAR RACER 5 IPA 22OZ BT 12LSE


I want to be able to look at the line and just show the information once it seems a number. Lets say that info is in A1:A3. In B1:B3, it would just show Bear Peter Brown, Bear Racer, and Bear Racer. How would I go about searching for a number in a string and then just showing the info before the number?
Try...

=TRIM(LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1))
 
Upvote 0
Perfect!

Now.. The other part.. How do I get everything after the first number it sees to the right?
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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