I have a SUMPRODUCT formula which looks at three columns - ORDER, START DATE, HOURS OF WORK to determine negative values in the HOURS OF WORK columns so that I can delete the negative value along with the corresponding positive value.
This worksheet can potentially have hundreds of thousands of rows so as you can image, the SUMPRODUCT solution takes an absolute age, to the point where it's actually quicker to do the job manually. From what I can find online, I believe a SUMIFS formula (even though it may require several extra columns) will complete the calculation much quicker.
Here's what I have at the moment - works perfectly but is extremely slow:
=IF((SUMPRODUCT(($A$2:$A$1000=A2)*($B$2:$B$1000=B2)*($C$2:$C$1000=-C2))>0)*(SUMPRODUCT(($A$2:$A2=A2)*($B$2:$B2=B2)*($C$2:$C2=C2))=1),"DELETE","")
I've been trying to perform the same calculation with SUMIFS however I just can't get my head around it.
If someone could help me out that would be amazing.
Thanks.
Bookmarks