Text Functions - non-uniform text

BobbM424

New Member
Joined
Aug 2, 2007
Messages
14
I am trying to extract a piece of text from a cell. I've tried the MID function and the RIGHT function but the text I am trying to extract does not follow a perfectly linear pattern like these functions assume. Here are 3 samples:

D.CB*9045717DF3
D.BSB*14386BCD3
D.WT*V08727-00789

I am only trying to extract the characters that come after the *, but as you can see sometimes the * comes as the 2nd or 3rd letter from the left in the cell and sometimes the numbers of characters I am trying to extract can be 10 or 12 characters from the right of the cell.

Is there any function that could help me out with this?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,358
Office Version
  1. 365
Platform
  1. Windows
Why not try Data>Text to columns... with * as the delimiter?
 
Upvote 0

Emanresux

Board Regular
Joined
Nov 27, 2006
Messages
179
You can use the function FIND() which will give you the position of the * and then use LEN() whill give you the lenght of the string
 
Upvote 0

Forum statistics

Threads
1,191,227
Messages
5,985,381
Members
439,961
Latest member
drose1105

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
Top