I am trying to do sumifs on below data as an example (Actual file has ~700K rows) and it took more than a couple of hours to compute. The 1st column has unique code of shop, the 2nd column has Part ID sold and 3rd column has the quantity sold. My aim is to create a 2nd table below which has only unique part ID (~60K) and sales amount from each shop. The file has 700K lines representing each and every sale transaction throughout a month.
I am using the below sumifs
=SUMIFS($C$2:$C$9,$A$2:$A$9,F$1,$B$2:$B$9,$E2)
How can I reduce the processing time? Is there a macro that can be used which is more efficient in processing time? Appreciate if you can give the full VBA code for this example - I have not used VBA for 10years now and had used very simple VBA only earlier
Code Part Quantity
D01 P001 10
D01 P002 5
D02 P001 4
D01 P001 10
D02 P004 1
D03 P002 3
D02 P003 2
D02 P004 7
Part D01 D02 D03
P001 20 4 -
P002 5 - 3
P003 - 2 -
P004 - 8 -
I am using the below sumifs
=SUMIFS($C$2:$C$9,$A$2:$A$9,F$1,$B$2:$B$9,$E2)
How can I reduce the processing time? Is there a macro that can be used which is more efficient in processing time? Appreciate if you can give the full VBA code for this example - I have not used VBA for 10years now and had used very simple VBA only earlier
Code Part Quantity
D01 P001 10
D01 P002 5
D02 P001 4
D01 P001 10
D02 P004 1
D03 P002 3
D02 P003 2
D02 P004 7
Part D01 D02 D03
P001 20 4 -
P002 5 - 3
P003 - 2 -
P004 - 8 -