Hello everyone,
Is there a way I could combine the data from two columns in one field in PIVOT table?
The data looks something like this:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Product A[/TD]
[TD]Product B[/TD]
[TD]Quantity - product A[/TD]
[TD]Quantity - product B[/TD]
[/TR]
[TR]
[TD]ID14[/TD]
[TD]ID2[/TD]
[TD]10[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]ID14[/TD]
[TD][/TD]
[TD]12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ID2[/TD]
[TD][/TD]
[TD]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ID16[/TD]
[TD]ID14[/TD]
[TD]20[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]ID17[/TD]
[TD]ID16[/TD]
[TD]10[/TD]
[TD]11[/TD]
[/TR]
</tbody>[/TABLE]
So, I would like to have in one PIVOT field combined products from both columns A and B (with removed duplicates) and the sum of quantities from both column C and D, depending in which column the product is placed.
It would be the same as using SUMIF from field C if product is in column A + SUMIF from field D if product is in column B.
Anyone has any idea how to do this?
Is there a way I could combine the data from two columns in one field in PIVOT table?
The data looks something like this:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Product A[/TD]
[TD]Product B[/TD]
[TD]Quantity - product A[/TD]
[TD]Quantity - product B[/TD]
[/TR]
[TR]
[TD]ID14[/TD]
[TD]ID2[/TD]
[TD]10[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]ID14[/TD]
[TD][/TD]
[TD]12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ID2[/TD]
[TD][/TD]
[TD]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ID16[/TD]
[TD]ID14[/TD]
[TD]20[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]ID17[/TD]
[TD]ID16[/TD]
[TD]10[/TD]
[TD]11[/TD]
[/TR]
</tbody>[/TABLE]
So, I would like to have in one PIVOT field combined products from both columns A and B (with removed duplicates) and the sum of quantities from both column C and D, depending in which column the product is placed.
It would be the same as using SUMIF from field C if product is in column A + SUMIF from field D if product is in column B.
Anyone has any idea how to do this?