I have a bit of a logic problem I'm trying to figure out. I have data that has inconsistent attributes and I want to figure out if I can programmatically extract the data: My data has a SINGLE column. Column A reflects the individual entries and the attributes associated with them. Column B is my data:
[TABLE="width: 375"]
<tbody>[TR]
[TD="align: right"]1[/TD]
[TD]Bananas[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Yellow[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Shipped[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Arrived[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]damaged[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Apples[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]En-route[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]TBD[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Grapes[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]TBD[/TD]
[/TR]
</tbody>[/TABLE]
I would prefer to get output leveraging only three rows:
Banans Yellow Shipped Arrived damaged
Apples Red En-route TBD
Grapes Green TBD
I was trying to leverage a nested IF statement and since I have over 100 entries, I don't want to copy/paste (transpose).... Any suggestions?
[TABLE="width: 375"]
<tbody>[TR]
[TD="align: right"]1[/TD]
[TD]Bananas[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Yellow[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Shipped[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Arrived[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]damaged[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Apples[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]En-route[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]TBD[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Grapes[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]TBD[/TD]
[/TR]
</tbody>[/TABLE]
I would prefer to get output leveraging only three rows:
Banans Yellow Shipped Arrived damaged
Apples Red En-route TBD
Grapes Green TBD
I was trying to leverage a nested IF statement and since I have over 100 entries, I don't want to copy/paste (transpose).... Any suggestions?
Last edited: