How to parse data from a cell

santa12345

Board Regular
Joined
Dec 2, 2020
Messages
70
Office Version
  1. 365
Platform
  1. Windows
Hello.

What formula would I use to parse the following.

JC-RO-06-L367-E201-J166-MK5C40-M14XT

The number could and can be different, but the section I'm looking for the characters following the MK.
So in this example I would want the formula to return 5C40.

Another example:

JC-RO-06-L367-E201-J166-MK5C4011-M14XT
So in this example I would want the formula to return 5C4011

Bottom line - the text after the MK and before the - .

Thank you.... hopefully this makes sense.
 
When you say you "need to extract the RO", I am assuming you mean the next number after it between the dashes, correct? If so...

=MID(LEFT(A2,FIND("-",A2,7)-1),7,99)
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Always a good idea to provide enough sample to show any variety that might occur with your data.
So, what about you give us 5 or 6 varied samples and the expected results instead of just one?
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

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