Hi
I am trying to search a data within a table and return the header of the corresponding column. For example,
[TABLE="width: 192"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="class: xl65, width: 64"] A[/TD]
[TD="class: xl65, width: 64"] B[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]Test1[/TD]
[TD="align: right"]Test2[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]17[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]19[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD="align: right"]18[/TD]
[TD="class: xl66"] B[/TD]
[/TR]
</tbody>[/TABLE]
If cell A7 = 18, then cell B7 = Test2
If cell A7 = 15, then cell B7 = Test1
can anyone help to create such formula in cell B7?
thanks,
I am trying to search a data within a table and return the header of the corresponding column. For example,
[TABLE="width: 192"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="class: xl65, width: 64"] A[/TD]
[TD="class: xl65, width: 64"] B[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]Test1[/TD]
[TD="align: right"]Test2[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]17[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]19[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD="align: right"]18[/TD]
[TD="class: xl66"] B[/TD]
[/TR]
</tbody>[/TABLE]
If cell A7 = 18, then cell B7 = Test2
If cell A7 = 15, then cell B7 = Test1
can anyone help to create such formula in cell B7?
thanks,