excel_learnerz
Board Regular
- Joined
- Dec 12, 2018
- Messages
- 73
Hey guys,
so basically I have a list on the left of companys (company a, company b as example) and list of products for each company (P1, P2, P3) and the revenue
Now I need something like the right hand side where all the products for each company are in a single cell (or even how to have them horizontally and I can concatenate them after) I can use a subtotal on the revenue anyway so I know how to do that bit,
Would anyone know how to get the products horizontally, my list is several thousand lines long,
Thanks in advance,
[TABLE="width: 484"]
<colgroup><col><col span="3"><col><col><col></colgroup><tbody>[TR]
[TD]Name[/TD]
[TD]Product[/TD]
[TD]Revenue[/TD]
[TD][/TD]
[TD]Name[/TD]
[TD]All products[/TD]
[TD]Total Revenue[/TD]
[/TR]
[TR]
[TD]Company A[/TD]
[TD]P1[/TD]
[TD="align: right"]200[/TD]
[TD][/TD]
[TD]Company A[/TD]
[TD] P1, P2, P3[/TD]
[TD="align: right"]600[/TD]
[/TR]
[TR]
[TD]Company A[/TD]
[TD]P2[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[TD]Company B [/TD]
[TD]P1, P2, P3[/TD]
[TD="align: right"]1200[/TD]
[/TR]
[TR]
[TD]Company A[/TD]
[TD]P3[/TD]
[TD="align: right"]300[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Company B[/TD]
[TD]P1[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Company B[/TD]
[TD]P2[/TD]
[TD="align: right"]800[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Company B[/TD]
[TD]P3[/TD]
[TD="align: right"]300[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 79"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][TABLE="width: 79"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>
so basically I have a list on the left of companys (company a, company b as example) and list of products for each company (P1, P2, P3) and the revenue
Now I need something like the right hand side where all the products for each company are in a single cell (or even how to have them horizontally and I can concatenate them after) I can use a subtotal on the revenue anyway so I know how to do that bit,
Would anyone know how to get the products horizontally, my list is several thousand lines long,
Thanks in advance,
[TABLE="width: 484"]
<colgroup><col><col span="3"><col><col><col></colgroup><tbody>[TR]
[TD]Name[/TD]
[TD]Product[/TD]
[TD]Revenue[/TD]
[TD][/TD]
[TD]Name[/TD]
[TD]All products[/TD]
[TD]Total Revenue[/TD]
[/TR]
[TR]
[TD]Company A[/TD]
[TD]P1[/TD]
[TD="align: right"]200[/TD]
[TD][/TD]
[TD]Company A[/TD]
[TD] P1, P2, P3[/TD]
[TD="align: right"]600[/TD]
[/TR]
[TR]
[TD]Company A[/TD]
[TD]P2[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[TD]Company B [/TD]
[TD]P1, P2, P3[/TD]
[TD="align: right"]1200[/TD]
[/TR]
[TR]
[TD]Company A[/TD]
[TD]P3[/TD]
[TD="align: right"]300[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Company B[/TD]
[TD]P1[/TD]
[TD="align: right"]100[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Company B[/TD]
[TD]P2[/TD]
[TD="align: right"]800[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Company B[/TD]
[TD]P3[/TD]
[TD="align: right"]300[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 79"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][TABLE="width: 79"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>