Parse Data in Cell

buzz71023

Active Member
Joined
May 29, 2011
Messages
295
Office Version
  1. 2016
Platform
  1. Windows
Hello all,
I am having trouble efficiently parsing the data in a cell and hopefully this makes sense.
Preferably I would like to have a formula.
For testing purposes, the data I am trying to parse is in cell A1.

The data I am trying to parse is
2403AD0471]1051790]37938

I need to parse out 3 different variables
1. after "240" and before "]10"
2. After "]10" and before "]37"
3. After "]37"

The data to parse is almost never a defined number of digits so it has to find the data between variables.

In my data example and following the parsing logic above, the next three columns should look like this

2403AD0471]1051790]379383AD0471
51790
938

Thank you in advanced to any and all who help here. I am open to all suggestions.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also are the 240 ]10 & ]37 always constant?
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also are the 240 ]10 & ]37 always constant?

Thanks I will work on that.
I am currently using Excel 2016 and yes, those 3 are always constant.
 
Upvote 0
Thanks for that.
How about
Fluff.xlsm
ABCD
1
22403AD0471]1051790]379383AD047151790938
Main
Cell Formulas
RangeFormula
B2B2=MID(LEFT(A2,FIND("]10",A2)-1),4,100)
C2C2=LEFT(REPLACE(A2,1,LEN(B2)+6,""),FIND("]37",REPLACE(A2,1,LEN(B2)+6,""))-1)
D2D2=MID(A2,FIND("]37",A2)+3,100)
 
Upvote 0
Solution
Thanks for that.
How about
Fluff.xlsm
ABCD
1
22403AD0471]1051790]379383AD047151790938
Main
Cell Formulas
RangeFormula
B2B2=MID(LEFT(A2,FIND("]10",A2)-1),4,100)
C2C2=LEFT(REPLACE(A2,1,LEN(B2)+6,""),FIND("]37",REPLACE(A2,1,LEN(B2)+6,""))-1)
D2D2=MID(A2,FIND("]37",A2)+3,100)

Perfect... thank you so much for the prompt replies. This is going help tons.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,510
Messages
6,125,234
Members
449,216
Latest member
biglake87

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