Hi,
I have a list of products produced by machines per day. each machine can produce multiple products and a product can be produced by multiple machines.
example:
[TABLE="width: 235"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Machine[/TD]
[TD]Product[/TD]
[/TR]
[TR]
[TD]4/2/2018 6:30[/TD]
[TD]2[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/3/2018 6:30[/TD]
[TD]2[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/4/2018 6:30[/TD]
[TD]2[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/5/2018 6:30[/TD]
[TD]2[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/8/2018 6:30[/TD]
[TD]2[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/9/2018 6:30[/TD]
[TD]2[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]4/10/2018 6:30[/TD]
[TD]2[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]4/11/2018 6:30[/TD]
[TD]2[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]4/12/2018 6:30[/TD]
[TD]2[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]4/13/2018 6:30[/TD]
[TD]2[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]4/14/2018 6:30[/TD]
[TD]2[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]4/15/2018 6:30[/TD]
[TD]2[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/16/2018 6:30[/TD]
[TD]2[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/16/2018 16:48[/TD]
[TD]2[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/17/2018 6:30[/TD]
[TD]2[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/18/2018 6:30[/TD]
[TD]2[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]4/19/2018 6:30[/TD]
[TD]2[/TD]
[TD]C[/TD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LE]
I am trying for hours using Pivot table to create a "summary" table, something like this:
[TABLE="width: 270"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD="align: right"]2[/TD]
[TD="align: left"]Start[/TD]
[TD="align: left"]End[/TD]
[/TR]
[TR]
[TD="align: left"]A[/TD]
[TD="align: right"]4/2/2018 6:30[/TD]
[TD="align: right"]4/8/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: left"]B[/TD]
[TD="align: right"]4/9/2018 6:30[/TD]
[TD="align: right"]4/14/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: left"]A[/TD]
[TD="align: right"]4/15/2018 6:30[/TD]
[TD="align: right"]4/17/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: left"]C[/TD]
[TD="align: right"]4/18/2018 6:30[/TD]
[TD="align: right"]4/20/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: left"]Start[/TD]
[TD="align: left"]End[/TD]
[/TR]
[TR]
[TD="align: left"]D[/TD]
[TD="align: right"]4/2/2018 6:30[/TD]
[TD="align: right"]4/8/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: left"]A[/TD]
[TD="align: right"]4/9/2018 6:30[/TD]
[TD="align: right"]4/14/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: left"]E[/TD]
[TD="align: right"]4/15/2018 6:30[/TD]
[TD="align: right"]4/16/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: left"]D[/TD]
[TD="align: right"]4/16/2018 16:48[/TD]
[TD="align: right"]4/20/2018 6:30[/TD]
[/TR]
</tbody>[/TABLE]
Thanks!
I have a list of products produced by machines per day. each machine can produce multiple products and a product can be produced by multiple machines.
example:
[TABLE="width: 235"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Machine[/TD]
[TD]Product[/TD]
[/TR]
[TR]
[TD]4/2/2018 6:30[/TD]
[TD]2[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/3/2018 6:30[/TD]
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/TD]
[/TR]
[TR]
[TD]4/5/2018 6:30[/TD]
[TD]1[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]4/8/2018 6:30[/TD]
[TD]1[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]4/9/2018 6:30[/TD]
[TD]1[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/10/2018 6:30[/TD]
[TD]1[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/11/2018 6:30[/TD]
[TD]1[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/12/2018 6:30[/TD]
[TD]1[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/13/2018 6:30[/TD]
[TD]1[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/14/2018 6:30[/TD]
[TD]1[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]4/15/2018 6:30[/TD]
[TD]1[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]4/16/2018 6:30[/TD]
[TD]1[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]4/16/2018 16:48[/TD]
[TD]1[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]4/17/2018 6:30[/TD]
[TD]1[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]4/18/2018 6:30[/TD]
[TD]1[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]4/19/2018 6:30[/TD]
[TD]1[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]4/20/2018 6:30[/TD]
[TD]1[/TD]
[TD]D[/TD]
[/TR]
</tbody>[/TABLE]
I am trying for hours using Pivot table to create a "summary" table, something like this:
[TABLE="width: 270"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD="align: right"]2[/TD]
[TD="align: left"]Start[/TD]
[TD="align: left"]End[/TD]
[/TR]
[TR]
[TD="align: left"]A[/TD]
[TD="align: right"]4/2/2018 6:30[/TD]
[TD="align: right"]4/8/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: left"]B[/TD]
[TD="align: right"]4/9/2018 6:30[/TD]
[TD="align: right"]4/14/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: left"]A[/TD]
[TD="align: right"]4/15/2018 6:30[/TD]
[TD="align: right"]4/17/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: left"]C[/TD]
[TD="align: right"]4/18/2018 6:30[/TD]
[TD="align: right"]4/20/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: left"]Start[/TD]
[TD="align: left"]End[/TD]
[/TR]
[TR]
[TD="align: left"]D[/TD]
[TD="align: right"]4/2/2018 6:30[/TD]
[TD="align: right"]4/8/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: left"]A[/TD]
[TD="align: right"]4/9/2018 6:30[/TD]
[TD="align: right"]4/14/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: left"]E[/TD]
[TD="align: right"]4/15/2018 6:30[/TD]
[TD="align: right"]4/16/2018 6:30[/TD]
[/TR]
[TR]
[TD="align: left"]D[/TD]
[TD="align: right"]4/16/2018 16:48[/TD]
[TD="align: right"]4/20/2018 6:30[/TD]
[/TR]
</tbody>[/TABLE]
Thanks!