Hi all,
I have two sheets that contain products and the amount sold, I'm trying to sum the total items sold for only 5 items that sold most. Trick is I want to split the 5 items to sum between two sheets, on sheet1 sum only 2 of 5 (value in D1)
[TABLE="width: 200"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]# Rows Count[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]PA[/TD]
[TD]15[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]PB[/TD]
[TD]45[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]PC[/TD]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]PD[/TD]
[TD]12[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]PE[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]PM[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]PN[/TD]
[TD]18[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
then check sheet2 and sum the rest of 5 (in this case 3)
[TABLE="width: 50"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]PF[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]PG[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]PH[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]PI[/TD]
[TD]16[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]PJ[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]PK[/TD]
[TD]33[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]PL[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
In this example the results would be, the top 5 items sold a total of 133. note that only sheet1 specifies the amount of rows to sum.
I have two sheets that contain products and the amount sold, I'm trying to sum the total items sold for only 5 items that sold most. Trick is I want to split the 5 items to sum between two sheets, on sheet1 sum only 2 of 5 (value in D1)
[TABLE="width: 200"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]# Rows Count[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]PA[/TD]
[TD]15[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]PB[/TD]
[TD]45[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]PC[/TD]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]PD[/TD]
[TD]12[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]PE[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]PM[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]PN[/TD]
[TD]18[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
then check sheet2 and sum the rest of 5 (in this case 3)
[TABLE="width: 50"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]PF[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]PG[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]PH[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]PI[/TD]
[TD]16[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]PJ[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]PK[/TD]
[TD]33[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]PL[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
In this example the results would be, the top 5 items sold a total of 133. note that only sheet1 specifies the amount of rows to sum.