flwoOrlando
New Member
- Joined
- Nov 18, 2015
- Messages
- 4
I have data in my cell d2 that has lots and lots of data merged together. I am attempting to write a formula that finds the specific word, and then give me the code associated with it. the data I want is never in a set format/length.
The formula I am attempting to use is: =MID(D392,FIND("BR ",D392)+2,(FIND("G",D392)-(FIND("CANADA ",D392)+9)))
In this code, I am attempting to get the code that comes after CO+BR but stops before the next region.
I would then create another column, and call it Canada, and want the code/digits that come after Canada but before CO+BR.
The data looks like this when copied out of excel:
[TABLE="width: 1842"]
<tbody>[TR]
[TD="width: 1842"]HS Codes
Country/group Code
Argentina 3901105010
CANADA 3901109091
CO + BR 3901
Europe 39011010
General 39011050
SINGAPORE 39011050
SWITZERLAND 39011010
THAILAND 39011050
TURKEY 39011050
UKRAINE 39011010
USA 3901105010 [/TD]
[/TR]
</tbody>[/TABLE]
The formula I am attempting to use is: =MID(D392,FIND("BR ",D392)+2,(FIND("G",D392)-(FIND("CANADA ",D392)+9)))
In this code, I am attempting to get the code that comes after CO+BR but stops before the next region.
I would then create another column, and call it Canada, and want the code/digits that come after Canada but before CO+BR.
The data looks like this when copied out of excel:
[TABLE="width: 1842"]
<tbody>[TR]
[TD="width: 1842"]HS Codes
Country/group Code
Argentina 3901105010
CANADA 3901109091
CO + BR 3901
Europe 39011010
General 39011050
SINGAPORE 39011050
SWITZERLAND 39011010
THAILAND 39011050
TURKEY 39011050
UKRAINE 39011010
USA 3901105010 [/TD]
[/TR]
</tbody>[/TABLE]