L
Legacy 143009
Guest
Hi,
[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD]PRODUCTS[/TD]
[TD] LOT NO.[/TD]
[TD]ERROR TYPE[/TD]
[TD]ERROR COUNT[/TD]
[TD]TOTAL LOT QT.[/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]1[/TD]
[TD]ERROR1[/TD]
[TD]2[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]1[/TD]
[TD]ERROR2[/TD]
[TD]3[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]1[/TD]
[TD]ERROR3[/TD]
[TD]5[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]2[/TD]
[TD]ERROR1[/TD]
[TD]2[/TD]
[TD]500[/TD]
[/TR]
</tbody>[/TABLE]
I have a similar table to follow production errors. To be able to create a graph later, I don't use a Pivot Table to report this data.
So have another table to show error percentages. One sample cell is given below to represent it:
[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD]PRODUCTS[/TD]
[TD]ERROR1[/TD]
[TD]ERROR2[/TD]
[TD]ERROR3[/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]=SUMIFS(ERROR COUNT, PRODUCTS, THIS PRODUCT, ERROR TYPE, THIS ERROR)/SUMIF(PRODUCTS, THIS PRODUCT, TOTAL LOT QT)*100[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PRODUCT2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PRODUCT3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PRODUCT4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
..and same for the other products and errors.
For ERROR1, the formula above will calculate "4/1100*100" but this is not I want. In fact, the first 3 record line belong to the same LOT NUMBER. So 200 is the same quantity for different ERROR records.
Last of all, the right calculation, for intance speaking about ERROR1, should be "4/700*100". Total amount of product entered to my depot is totally 700 actually.
Now, somewhere in the denominator section I have to say "Sum if LOT Numbers are distinctive".
Waiting for your helps. Have a nice day fellas!
[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD]PRODUCTS[/TD]
[TD] LOT NO.[/TD]
[TD]ERROR TYPE[/TD]
[TD]ERROR COUNT[/TD]
[TD]TOTAL LOT QT.[/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]1[/TD]
[TD]ERROR1[/TD]
[TD]2[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]1[/TD]
[TD]ERROR2[/TD]
[TD]3[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]1[/TD]
[TD]ERROR3[/TD]
[TD]5[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]2[/TD]
[TD]ERROR1[/TD]
[TD]2[/TD]
[TD]500[/TD]
[/TR]
</tbody>[/TABLE]
I have a similar table to follow production errors. To be able to create a graph later, I don't use a Pivot Table to report this data.
So have another table to show error percentages. One sample cell is given below to represent it:
[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD]PRODUCTS[/TD]
[TD]ERROR1[/TD]
[TD]ERROR2[/TD]
[TD]ERROR3[/TD]
[/TR]
[TR]
[TD]PRODUCT1[/TD]
[TD]=SUMIFS(ERROR COUNT, PRODUCTS, THIS PRODUCT, ERROR TYPE, THIS ERROR)/SUMIF(PRODUCTS, THIS PRODUCT, TOTAL LOT QT)*100[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PRODUCT2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PRODUCT3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PRODUCT4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
..and same for the other products and errors.
For ERROR1, the formula above will calculate "4/1100*100" but this is not I want. In fact, the first 3 record line belong to the same LOT NUMBER. So 200 is the same quantity for different ERROR records.
Last of all, the right calculation, for intance speaking about ERROR1, should be "4/700*100". Total amount of product entered to my depot is totally 700 actually.
Now, somewhere in the denominator section I have to say "Sum if LOT Numbers are distinctive".
Waiting for your helps. Have a nice day fellas!
Last edited by a moderator: