Hi All,
I'm trying to create a formula that will allow me to search 3 different strings within a field that contains a long piece of text and then give me 3 separate and different strings depending on what is found. As per the table below I will be searching for either Class1, Class3, or Class 4. If Class1 is found then I need the value CLS1, if Class3 is found I need the value CLS3 and finally (arguably the tricky aspect) if Class4 is found I need the row (and all its columns) to be copied and one allocated to CLS1 and the other CLS3.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Role[/TD]
[TD]Long Text[/TD]
[TD]Extraction[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Class1, Class2, [/TD]
[TD]CLS1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Class3[/TD]
[TD]CLS3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Class4[/TD]
[TD]CLS1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Class4[/TD]
[TD]CLS3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I hope this makes sense, if there is anyone who can offer any input it would be greatly appreciated!
Thanks,
Tonks
I'm trying to create a formula that will allow me to search 3 different strings within a field that contains a long piece of text and then give me 3 separate and different strings depending on what is found. As per the table below I will be searching for either Class1, Class3, or Class 4. If Class1 is found then I need the value CLS1, if Class3 is found I need the value CLS3 and finally (arguably the tricky aspect) if Class4 is found I need the row (and all its columns) to be copied and one allocated to CLS1 and the other CLS3.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Role[/TD]
[TD]Long Text[/TD]
[TD]Extraction[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Class1, Class2, [/TD]
[TD]CLS1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Class3[/TD]
[TD]CLS3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Class4[/TD]
[TD]CLS1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Class4[/TD]
[TD]CLS3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I hope this makes sense, if there is anyone who can offer any input it would be greatly appreciated!
Thanks,
Tonks