# Extracting Words from a cell

#### koreyjames

##### New Member
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!

### 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
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 />

#### koreyjames

##### New Member
You my friend are a legend, thank you very much!

#### azumi

##### Well-known Member
Left(a1,find(" ",trim(mid(substitute(a1,"-",rept(" ",99)),100,99)),1)-1)

Replies
10
Views
73
Replies
1
Views
59
Replies
12
Views
242
Replies
7
Views
290
Replies
4
Views
258