Hi,
I have been trying a formula to return row and column heading from table 1 including the cell value of the cell with value in it. I had been trying to follow this post : https://www.mrexcel.com/forum/excel...column-header-row-header-each-occurrence.html but can't seem to make it work. Can anyone help with a simpler Index/Vlookup formula.
here is my example, Table 1 to give something like that of Tabe 2:
[TABLE="width: 384"]
<colgroup><col width="64" span="6" style="width: 48pt; text-align: center;"> </colgroup><tbody>[TR]
[TD="width: 64, align: center"]Table1[/TD]
[TD="width: 64, align: center"][/TD]
[TD="width: 64, align: center"][/TD]
[TD="width: 64, align: center"][/TD]
[TD="width: 64, align: center"][/TD]
[TD="width: 64, align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]Apple[/TD]
[TD="class: xl63, align: center"]Banana[/TD]
[TD="class: xl63, align: center"]Cake[/TD]
[TD="class: xl63, align: center"]Chips[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Alex[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Brian[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]2[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Charlie[/TD]
[TD="class: xl63, align: center"]3[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Dana[/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]2[/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Erica[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]2[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Fred[/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Grace[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]2[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"](blank)[/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="class: xl63"] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Table2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Alex[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Banana[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Brian[/TD]
[TD="class: xl64"]2[/TD]
[TD="class: xl63"]Banana[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Brian[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Chips[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Charlie[/TD]
[TD="class: xl64"]3[/TD]
[TD="class: xl63"]Apple[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Dana[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Apple[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Dana[/TD]
[TD="class: xl64"]2[/TD]
[TD="class: xl63"]Cake[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Dana[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Chips[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Erica[/TD]
[TD="class: xl64"]2[/TD]
[TD="class: xl63"]Chips[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Fred[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Apple[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Grace[/TD]
[TD="class: xl64"]2[/TD]
[TD="class: xl63"]Banana[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"](blank)[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Apple[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"](blank)[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Cake[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance
I have been trying a formula to return row and column heading from table 1 including the cell value of the cell with value in it. I had been trying to follow this post : https://www.mrexcel.com/forum/excel...column-header-row-header-each-occurrence.html but can't seem to make it work. Can anyone help with a simpler Index/Vlookup formula.
here is my example, Table 1 to give something like that of Tabe 2:
[TABLE="width: 384"]
<colgroup><col width="64" span="6" style="width: 48pt; text-align: center;"> </colgroup><tbody>[TR]
[TD="width: 64, align: center"]Table1[/TD]
[TD="width: 64, align: center"][/TD]
[TD="width: 64, align: center"][/TD]
[TD="width: 64, align: center"][/TD]
[TD="width: 64, align: center"][/TD]
[TD="width: 64, align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]Apple[/TD]
[TD="class: xl63, align: center"]Banana[/TD]
[TD="class: xl63, align: center"]Cake[/TD]
[TD="class: xl63, align: center"]Chips[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Alex[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Brian[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]2[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Charlie[/TD]
[TD="class: xl63, align: center"]3[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Dana[/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]2[/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Erica[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]2[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Fred[/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Grace[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]2[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"](blank)[/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="class: xl63, align: center"] [/TD]
[TD="class: xl63, align: center"]1[/TD]
[TD="class: xl63"] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Table2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Alex[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Banana[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Brian[/TD]
[TD="class: xl64"]2[/TD]
[TD="class: xl63"]Banana[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Brian[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Chips[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Charlie[/TD]
[TD="class: xl64"]3[/TD]
[TD="class: xl63"]Apple[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Dana[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Apple[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Dana[/TD]
[TD="class: xl64"]2[/TD]
[TD="class: xl63"]Cake[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Dana[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Chips[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Erica[/TD]
[TD="class: xl64"]2[/TD]
[TD="class: xl63"]Chips[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Fred[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Apple[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"]Grace[/TD]
[TD="class: xl64"]2[/TD]
[TD="class: xl63"]Banana[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"](blank)[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Apple[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl63"](blank)[/TD]
[TD="class: xl64"]1[/TD]
[TD="class: xl63"]Cake[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance