Hope someone can help me.
I have single cells containing values separated by commas. Something like this: XFF,ONG,S,HP
I want to be able to lookup occurence of a string and then get a sum of all strings in that cell based on corresponding values found in a table:
[TABLE="width: 500"]
<tbody>[TR]
[TD]DTX[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]XFF[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]ONG[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]S[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]HP[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]INV[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]GENERIC[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"></colgroup><tbody> [TR]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
Based on the above (XFF,ONG,S,HP) i would want it to return the sum of all those which would be 12
Is that possible?
I have single cells containing values separated by commas. Something like this: XFF,ONG,S,HP
I want to be able to lookup occurence of a string and then get a sum of all strings in that cell based on corresponding values found in a table:
[TABLE="width: 500"]
<tbody>[TR]
[TD]DTX[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]XFF[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]ONG[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]S[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]HP[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]INV[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]GENERIC[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"></colgroup><tbody> [TR]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
Based on the above (XFF,ONG,S,HP) i would want it to return the sum of all those which would be 12
Is that possible?