Extracting Words from a cell

koreyjames

New Member
Joined
Jul 23, 2012
Messages
44
Hey guys,

Really quick and easy one but for the life of me I cannot get it work.

I need to extract the names from the 'T' at the start of TBBC to the first space at the end before the Employee number.

TL-TBBCCABBILL C123456
TL-TBBCCARCPE C123456
TL-TBBCCABCPE D123456
TL-TBBCCABCPE D123456

<tbody>
</tbody>

<tbody>
</tbody>

<tbody>
</tbody>

<tbody>
</tbody>

I am using =MID(Z9,FIND("-",Z9,FIND(" ",Z9)+1)+1,2) but it continues to return an error.

Anyone able to give me a quick hand in solving this one?

Thanks!
 

Some videos you may like

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,037
Office Version
  1. 365
Platform
  1. Windows
Like this maybe

<b>Excel 2010</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>A</th><th>B</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="color: #333333;background-color: #FAFAFA;;">TL-TBBCCABBILL C123456</td><td style=";">TBBCCABBILL</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="color: #333333;background-color: #FAFAFA;;">TL-TBBCCARCPE C123456</td><td style=";">TBBCCARCPE</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="color: #333333;background-color: #FAFAFA;;">TL-TBBCCABCPE D123456</td><td style=";">TBBCCABCPE</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="color: #333333;background-color: #FAFAFA;;">TL-TBBCCABCPE D123456</td><td style=";">TBBCCABCPE</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Sheet4</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">B1</th><td style="text-align:left">=MID(<font color="Blue">A1,FIND(<font color="Red">"-",A1</font>)+1,FIND(<font color="Red">" ",A1</font>)-FIND(<font color="Red">"-",A1</font>)-1</font>)</td></tr></tbody></table></td></tr></table><br />
 

azumi

Well-known Member
Joined
Jun 4, 2013
Messages
555
Left(a1,find(" ",trim(mid(substitute(a1,"-",rept(" ",99)),100,99)),1)-1)
 

Watch MrExcel Video

Forum statistics

Threads
1,108,614
Messages
5,523,906
Members
409,542
Latest member
Shezz01

This Week's Hot Topics

Top