Extracting Text from part of a cell

Bazzza67

New Member
Joined
Apr 17, 2015
Messages
22
Hi Board Members

Can I please request your assistance. Having done a search, this type of question is raised frequently, but I haven't quite mastered applying solutins to my needs.

I have cells with variable string length, examples below, I need to extract the full PRJT number including the suffix from each cell, so PRJT1234, PRJT4758 & PRJT3457

Many thanks in anticipation
wydgvxydw PRJT1234 jjjjhffjjjoyk
web PRJT4758 ihc hwe
has ffwei fweb PRJT3457 ihc hwe
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi, this assumes that the PRJT numbers are always 8 characters long (like your examples) - this can be made more dynamic if needed.

Book3
AB
1wydgvxydw PRJT1234 jjjjhffjjjoykPRJT1234
2web PRJT4758 ihc hwePRJT4758
3has ffwei fweb PRJT3457 ihc hwePRJT3457
Sheet1
Cell Formulas
RangeFormula
B1:B3B1=MID(A1,FIND("PRJT",A1),8)
 
Upvote 0
The function searches for the possition of the word "PRJT..." and for the possition of the space after that word and extracts what is in between them.

Traductor de Formulas - copia.xlsm
ABCD
1wydgvxydw PRJT1234 jjjjhffjjjoykPRJT1234
2web PRJT4758 ihc hwePRJT4758
3has ffwei fweb PRJT3457 ihc hwePRJT3457
Hoja5
Cell Formulas
RangeFormula
D1:D3D1=MID(A1,SEARCH("PRJT*",A1,1),SEARCH(" ",A1,SEARCH("PRJT*",A1,1))-SEARCH("PRJT*",A1,1))
 
Upvote 0

Forum statistics

Threads
1,215,011
Messages
6,122,680
Members
449,091
Latest member
peppernaut

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