HELP
I am trying to do the same as everyone else... Am a novice at this and still getting my head around what the functions achieve so i seem to be doing something fundamentally wrong. If someone can help and also explain what I am doing wrong that would be AMAZING. I will either have a 15 or 21 digit number with 4 "_" separating the different item codes.
Such as
[TABLE="width: 1140"]
<tbody>[TR]
[TD]01_001_0101_1_1
[/TD]
[/TR]
[TR]
[TD]OR[/TD]
[/TR]
[TR]
[TD]03_050903053_0103_1_1
What I have so far is...... I am just not sure where I am going wrong.
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 1140"]
<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]To Find "_"[/TD]
[TD]"_" position[/TD]
[TD]To extract part of string[/TD]
[TD]To extract part of string[/TD]
[TD] [/TD]
[TD]Works [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]First[/TD]
[TD]SEARCH("_",A62)[/TD]
[TD="align: right"]3[/TD]
[TD]LEFT($A62,SEARCH("_",$A62)-1)[/TD]
[TD]01[/TD]
[TD] [/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Second [/TD]
[TD]SEARCH("_",A62,SEARCH("_",A62)+1)[/TD]
[TD="align: right"]7[/TD]
[TD]LEFT($A62,SEARCH("_",$A62,SEARCH("_",A62)+1))[/TD]
[TD]01_001_[/TD]
[TD] [/TD]
[TD]No [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Third [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Fourth[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Fifth[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]