Pulling Data out of the middle of a cell to another Cell

bclor3591

New Member
Joined
Oct 7, 2010
Messages
33
Good Afternoon,

Here is the information that I'm working with. This is a portion of an EDI ERROR email with the trading partner information (it always falls right after the FIRST /)

I have highlighted the portion that I want to parse to another column/cell. the position varios depending on the Trading Partner name but the TP ID always follows the FIRST / in every email.

OUR COMPANY NAME[11:11223344410]/ABC COMPANY INC[01:123456789]/810ANY</SPAN></SPAN>
OUR COMPANY NAME[11:11223344410]/ZZZZZ COMPANY INC[11:123456789]/852ANY</SPAN></SPAN>
OUR COMPANY NAME[11:11223344410]/THIS IS ANOTHER COMPANY INC[21:123456789]/850ANY</SPAN></SPAN>
OUR COMPANY NAME[11:11223344410]/A CO[01:123456789]/810ANY</SPAN></SPAN>


What I'm planning on doing is taking this new cell information and do a VLOOKUP to another spreadsheet to get their email address and then send them an email telling them that their EDI document failed due to syntax errors. I tried using find with mid but not working correctly. Any help would be greatly appreciated.
Bob
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Excel Workbook
AB
1OUR COMPANY NAME[11:11223344410]/ABC COMPANY INC[01:123456789]/810ANY01:123456789
2OUR COMPANY NAME[11:11223344410]/ZZZZZ COMPANY INC[11:123456789]/852ANY11:123456789
3OUR COMPANY NAME[11:11223344410]/THIS IS ANOTHER COMPANY INC[21:123456789]/850ANY21:123456789
4OUR COMPANY NAME[11:11223344410]/A CO[01:123456789]/810ANY01:123456789
Sheet13
 
Upvote 0
Thank you Joe,

That worked perfectly! I was trying to use trim and mid but not knowing how to interact with the two functions made it difficult. You made it look easy!! :)
Bob
 
Upvote 0
Thank you Joe,

That worked perfectly! I was trying to use trim and mid but not knowing how to interact with the two functions made it difficult. You made it look easy!! :)
Bob
You are welcome - thanks for the reply.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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