Hi
I have a table that looks like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Header1
[/TD]
[TD]header 2
[/TD]
[TD]Values
[/TD]
[/TR]
[TR]
[TD]item1
[/TD]
[TD]item3
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]item2
[/TD]
[TD][/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]item3
[/TD]
[TD]item4
[/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]
I need header1 and header2 to be row values and Values column to be values. The trick is, I need both headers to be as one row and sum corresponding values, so it looks like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Headers
[/TD]
[TD]Values
[/TD]
[/TR]
[TR]
[TD]item1
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]item2
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]item3
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]item4
[/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]
I created a macro, that creates new table and creates pivot table from the newly created table, but I wonder, if there is a simpler way of doing it by using pivot tables only.
Thanks
I have a table that looks like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Header1
[/TD]
[TD]header 2
[/TD]
[TD]Values
[/TD]
[/TR]
[TR]
[TD]item1
[/TD]
[TD]item3
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]item2
[/TD]
[TD][/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]item3
[/TD]
[TD]item4
[/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]
I need header1 and header2 to be row values and Values column to be values. The trick is, I need both headers to be as one row and sum corresponding values, so it looks like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Headers
[/TD]
[TD]Values
[/TD]
[/TR]
[TR]
[TD]item1
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]item2
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]item3
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]item4
[/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]
I created a macro, that creates new table and creates pivot table from the newly created table, but I wonder, if there is a simpler way of doing it by using pivot tables only.
Thanks