qadeerahmed
New Member
- Joined
- Nov 5, 2015
- Messages
- 6
I' have a question somewhat similar to this post, but with some difference.
https://www.mrexcel.com/forum/excel...column-header-row-header-each-occurrence.html
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]01-JAN-17[/TD]
[TD]02-JAN-17[/TD]
[TD]03-JAN-17[/TD]
[TD]04-JAN-17[/TD]
[TD]05-JAN-17[/TD]
[TD]06-JAN-17[/TD]
[TD]07-JAN-17[/TD]
[/TR]
[TR]
[TD]99XX1002[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD="align: center"]99XX1003[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD="align: center"]99XX1004[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]99RN1005[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 512"]
<tbody>[TR]
[TD]what I 'm looking is...
IF > 0 THEN return corresponding Column & Row Header; for times the value occurred on each date
e.g.
99xx1002 occurred 1 time on "02-Jan-17" and 3 times on "04-Jan-17 and 1 time on 05/06 jan....
I want to put this into tabular form like....[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]99xx1002[/TD]
[TD]02-jan-17[/TD]
[/TR]
[TR]
[TD]99xx1002[/TD]
[TD]04-Jan-17[/TD]
[/TR]
[TR]
[TD]99xx1002[/TD]
[TD]04-Jan-17[/TD]
[/TR]
[TR]
[TD]99xx1002[/TD]
[TD]04-Jan-17[/TD]
[/TR]
[TR]
[TD]99xx1002[/TD]
[TD]05-Jan-17[/TD]
[/TR]
[TR]
[TD]99xx1002[/TD]
[TD]06-jan-17[/TD]
[/TR]
[TR]
[TD]99xx1003[/TD]
[TD]02-jan-17[/TD]
[/TR]
[TR]
[TD]99xx1003[/TD]
[TD]02-jan-17[/TD]
[/TR]
</tbody>[/TABLE]
Appreciate for your time and help
Thanks!
[/TD]
[/TR]
</tbody><colgroup><col span="8"></colgroup>[/TABLE]
https://www.mrexcel.com/forum/excel...column-header-row-header-each-occurrence.html
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]01-JAN-17[/TD]
[TD]02-JAN-17[/TD]
[TD]03-JAN-17[/TD]
[TD]04-JAN-17[/TD]
[TD]05-JAN-17[/TD]
[TD]06-JAN-17[/TD]
[TD]07-JAN-17[/TD]
[/TR]
[TR]
[TD]99XX1002[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD="align: center"]99XX1003[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD="align: center"]99XX1004[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]99RN1005[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 512"]
<tbody>[TR]
[TD]what I 'm looking is...
IF > 0 THEN return corresponding Column & Row Header; for times the value occurred on each date
e.g.
99xx1002 occurred 1 time on "02-Jan-17" and 3 times on "04-Jan-17 and 1 time on 05/06 jan....
I want to put this into tabular form like....[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]99xx1002[/TD]
[TD]02-jan-17[/TD]
[/TR]
[TR]
[TD]99xx1002[/TD]
[TD]04-Jan-17[/TD]
[/TR]
[TR]
[TD]99xx1002[/TD]
[TD]04-Jan-17[/TD]
[/TR]
[TR]
[TD]99xx1002[/TD]
[TD]04-Jan-17[/TD]
[/TR]
[TR]
[TD]99xx1002[/TD]
[TD]05-Jan-17[/TD]
[/TR]
[TR]
[TD]99xx1002[/TD]
[TD]06-jan-17[/TD]
[/TR]
[TR]
[TD]99xx1003[/TD]
[TD]02-jan-17[/TD]
[/TR]
[TR]
[TD]99xx1003[/TD]
[TD]02-jan-17[/TD]
[/TR]
</tbody>[/TABLE]
Appreciate for your time and help
Thanks!
[/TD]
[/TR]
</tbody><colgroup><col span="8"></colgroup>[/TABLE]