I have a sumproduct formula but it takes to long to run. How can I rewrite it or use index match match to speed this thing up?
=SUMPRODUCT(($C$2:$C$200000=[@InvoiceNumber])*($D$2:$D$200000=[@LineNumber])*$F$2:$F$200000)
It calculates 2, 200000 line arrays and then returns the amount requested, column F(Line Amount) when it hits the (1,1,Line Amount) result and the other 199999 lines are discarded(returns 0 values if not the right invoice or the right line). This will take 200 minutes to process when I copy this down for all 200000 lines with my current computer hardware.
I can see that if I could only search line numbers for that particular invoice it would speed up the formula greatly. Would I have to nest a function and then run as an array formula? Produce a temp. array with all invoice number, line numbers and then just pull the appropriate line amount from that temp. array.
Any help would be great.
=SUMPRODUCT(($C$2:$C$200000=[@InvoiceNumber])*($D$2:$D$200000=[@LineNumber])*$F$2:$F$200000)
It calculates 2, 200000 line arrays and then returns the amount requested, column F(Line Amount) when it hits the (1,1,Line Amount) result and the other 199999 lines are discarded(returns 0 values if not the right invoice or the right line). This will take 200 minutes to process when I copy this down for all 200000 lines with my current computer hardware.
I can see that if I could only search line numbers for that particular invoice it would speed up the formula greatly. Would I have to nest a function and then run as an array formula? Produce a temp. array with all invoice number, line numbers and then just pull the appropriate line amount from that temp. array.
Any help would be great.