Extra text after specific characters

Country_Calc_2

New Member
Joined
Sep 16, 2023
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am looking for 2 formulas to extract text that could be anywhere within cell A1.

B1 will always start with 'NCT*" and be 11 characters.

C1 will always follow "EudraCT Number: *" and be 14 characters.

057-08
536/2010
AC-055-302/SERAPHIN
EudraCT Number: 2007-002440-14
NCT00660179
NL20580.100.08
SERAPHIN
NCT006601792007-002440-14

I tried searching the board, but the examples I saw were alot more complex.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
How about
Fluff.xlsm
ABC
1057-08 536/2010 AC-055-302/SERAPHIN EudraCT Number: 2007-002440-14 NCT00660179 NL20580.100.08 SERAPHINNCT006601792007-002440-14
Sheet6
Cell Formulas
RangeFormula
B1B1=MID(A1,SEARCH("nct",A1),11)
C1C1=MID(A1,SEARCH("eudract",A1)+16,14)
 
Upvote 0
Solution
How about this:

Book4
ABC
1057-08 536/2010 AC-055-302/SERAPHIN EudraCT Number: 2007-002440-14 NCT00660179 NL20580.100.08 SERAPHINNCT006601792007-002440-14
Sheet1
Cell Formulas
RangeFormula
B1B1=MID(A1,SEARCH("NCT",A1),11)
C1C1=MID(A1,SEARCH("EudraCT",A1)+16,14)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,121
Members
452,381
Latest member
Nova88

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