FIND Option

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
567
Office Version
  1. 365
Platform
  1. Windows
I have several strings of data each 200-500 characters. I am trying to collect the 9 places of data within the string that come after a constant "EX". For example: 12345DEFCT444556EX987654321XX2DS84EGSS5....

There will be only 1 EX in the line each line so in this example I am trying to collect the 987654321.

I have tried various formula's with FIND but I cannot seem to dissect out the 9 character string.

I would appreciate and help.

Thanks,
James
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
How about
=MID(A1,SEARCH("ex",A1)+2,9)
 
Upvote 0
Thanks to both of you!
 
Last edited:
Upvote 0
Since I have you here. I have another formula =MID(M13,FIND(",",M13)+1,256) but sometimes after the "," there can be a dash "-").

Is there an IFERROR formula I can tie in to default the "-" to be something like 5.00? I am adding 2 columns and when the "-" appears the sum of the 2 is off.

Thanks
 
Upvote 0
Maybe something like
=SUBSTITUTE(MID(M13,FIND(",",M13)+1,256),"-","5.00")
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,634
Messages
6,125,938
Members
449,275
Latest member
jacob_mcbride

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