Divide string at first numeric digit

sriche01

Board Regular
Joined
Dec 24, 2013
Messages
137
Office Version
  1. 365
Platform
  1. Windows
Hello,

I would like a formula solution to splitting a text prefix from a combination of text and numbers that make up a product's item number. Typical examples:

ACAN SIVV08
EUON LIM18-2
[TABLE="width: 126"]
<tbody>[TR]
[TD="class: xl65, width: 126"]SYRI JOS18-st[/TD]
[/TR]
</tbody>[/TABLE]
TAXU FAS50D

There are two consistent features in all the item numbers:
  • They begin with 4 letters then a space
  • There are 2 numeric digits that indicate a size near the end

I would like to peel the numeric part and whatever follows it off the letters in the following way:

ACAN SIVV08 would become ACAN SIVV
EUON LIM18-2 would become EUON LIM
SYRI JOS18-st would become SYRI JOS
TAXU FAS50D would become TAXU FAS

I do not want a VBA solution. I was thinking if there was a way using the RIGHT function and finding the first number to determine string length.

Any Ideas?

Many thanks!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Assuming values in column A beginning in A2 try

B2 copied down
=LEFT(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"0123456789")-1))

M.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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