Hi
I have been trying to sovle this for a day now, and its frustated me.
I have data in a column (Name) and dependant on where the data is in the string and the number of characters, depends on what column it should sit in. I have pasted a table below showing the possible combinations and how it should split out. The fields have a set number of characters with exception of Set 4 which can be 1 -8 characters in lenth.
Set 1 & 2 are fine, using Mid/left etc that works fine. its getting Set 3 and Set4 to work for each scenario i cant get to work. I have tried various combinations of Mid/LEN/FIND etc with no joy.
Any help would be appreciated
Thanks
Lynsey
[TABLE="width: 666"]
<TBODY>[TR]
[TD="width: 189, bgcolor: transparent"][/TD]
[TD="class: xl2039, width: 175, bgcolor: transparent"]6 Char
[/TD]
[TD="class: xl2039, width: 175, bgcolor: transparent"]5 Char
[/TD]
[TD="class: xl2039, width: 175, bgcolor: transparent"]5 Char
[/TD]
[TD="class: xl2039, width: 175, bgcolor: transparent"]max 8 Char
[/TD]
[/TR]
[TR]
[TD="class: xl2036, bgcolor: yellow"]Name
[/TD]
[TD="class: xl2036, bgcolor: yellow"]Set 1
[/TD]
[TD="class: xl2036, bgcolor: yellow"]Set 2
[/TD]
[TD="class: xl2037, bgcolor: yellow"]Set 3
[/TD]
[TD="class: xl2037, bgcolor: yellow"]Set 4
[/TD]
[/TR]
[TR]
[TD="class: xl2040, bgcolor: transparent"]115113.52010.1ABCD
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]115113
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]52010
[/TD]
[TD="class: xl2039, bgcolor: transparent"]1ABCD
[/TD]
[TD="class: xl2038, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl2040, bgcolor: transparent"]115113.52010.1ABCD.5TEN56
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]115113
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]52010
[/TD]
[TD="class: xl2039, bgcolor: transparent"]1ABCD
[/TD]
[TD="class: xl2041, bgcolor: transparent"]5TEN56
[/TD]
[/TR]
[TR]
[TD="class: xl2039, bgcolor: transparent"]115113.52010.5TEN5678
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]115113
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]52010
[/TD]
[TD="class: xl2039, bgcolor: transparent"][/TD]
[TD="class: xl2041, bgcolor: transparent"]5TEN5678
[/TD]
[/TR]
[TR]
[TD="class: xl2039, bgcolor: transparent"]115113.52010
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]115113
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]52010
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</TBODY>[/TABLE]
I have been trying to sovle this for a day now, and its frustated me.
I have data in a column (Name) and dependant on where the data is in the string and the number of characters, depends on what column it should sit in. I have pasted a table below showing the possible combinations and how it should split out. The fields have a set number of characters with exception of Set 4 which can be 1 -8 characters in lenth.
Set 1 & 2 are fine, using Mid/left etc that works fine. its getting Set 3 and Set4 to work for each scenario i cant get to work. I have tried various combinations of Mid/LEN/FIND etc with no joy.
Any help would be appreciated
Thanks
Lynsey
[TABLE="width: 666"]
<TBODY>[TR]
[TD="width: 189, bgcolor: transparent"][/TD]
[TD="class: xl2039, width: 175, bgcolor: transparent"]6 Char
[/TD]
[TD="class: xl2039, width: 175, bgcolor: transparent"]5 Char
[/TD]
[TD="class: xl2039, width: 175, bgcolor: transparent"]5 Char
[/TD]
[TD="class: xl2039, width: 175, bgcolor: transparent"]max 8 Char
[/TD]
[/TR]
[TR]
[TD="class: xl2036, bgcolor: yellow"]Name
[/TD]
[TD="class: xl2036, bgcolor: yellow"]Set 1
[/TD]
[TD="class: xl2036, bgcolor: yellow"]Set 2
[/TD]
[TD="class: xl2037, bgcolor: yellow"]Set 3
[/TD]
[TD="class: xl2037, bgcolor: yellow"]Set 4
[/TD]
[/TR]
[TR]
[TD="class: xl2040, bgcolor: transparent"]115113.52010.1ABCD
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]115113
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]52010
[/TD]
[TD="class: xl2039, bgcolor: transparent"]1ABCD
[/TD]
[TD="class: xl2038, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl2040, bgcolor: transparent"]115113.52010.1ABCD.5TEN56
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]115113
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]52010
[/TD]
[TD="class: xl2039, bgcolor: transparent"]1ABCD
[/TD]
[TD="class: xl2041, bgcolor: transparent"]5TEN56
[/TD]
[/TR]
[TR]
[TD="class: xl2039, bgcolor: transparent"]115113.52010.5TEN5678
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]115113
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]52010
[/TD]
[TD="class: xl2039, bgcolor: transparent"][/TD]
[TD="class: xl2041, bgcolor: transparent"]5TEN5678
[/TD]
[/TR]
[TR]
[TD="class: xl2039, bgcolor: transparent"]115113.52010
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]115113
[/TD]
[TD="class: xl2035, bgcolor: transparent, align: right"]52010
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</TBODY>[/TABLE]