Hello,
I have a quite big file of 30,000+ rows,. It's full of sumproduct formulas, It basically checks prices in sheet1
and adds them up in sheet2 to check how much employee earned and based on that what is going to be his salary(10% above minimum to earn + add on).
My only problem with this file is that it takes too much time adding or deleting new row/column that's beetween formula range. For example if I would like to get rid of rows with [1]JobName1 by filtering them and deleting, it can take even up to 1 hour to do it for every single employee.
D3 formula =if(counta(D6:D15)=0;"---";sumproduct(D6:D15;Sheet1!$C$2:$C$11)).
D2 formula, big one, that is probably cause of my problems =IFERROR(IF(D3>Sheet1!$A$4;(D3-Sheet1!$A$4)*(Sheet1!$A$2/100)+(SUMPRODUCT(Sheet1!$D$2:$D$11;--NOT(ISBLANK(D6:D15)))/COUNT(D6:D15));(SUMPRODUCT(Sheet1!$D$2:$D$11;--NOT(ISBLANK(D6:D15)))/COUNT(D6:D15)));0)+IFERROR(IF(D4>Sheet1!$A$4;(D4-Sheet1!$A$4)*(Sheet1!$A$2/100)+(SUMPPRODUCT(Sheet1!$D$12:$D$21;--NOT(ISBLANK(D16:D25)))/COUNT(D16:D25));(SUMPPRODUCT(Sheet1!$D$12:$D$21;--NOT(ISBLANK(D16:D25)))/COUNT(D16:D25)));0)+IFERROR(IF(D5>Sheet1!$A$4;(D5-Sheet1!$A$4)*(Sheet1!$A$2/100)+(SUMPRODUCT(Sheet1!$D$22:$D$31;--NOT(ISBLANK(D26:D35)))/COUNT(D26:D35));(SUMPRODUCT(Sheet1!$D$22:$D$31;--NOT(ISBLANK(D26:D35)))/COUNT(D26:D35)));0)
Link to example file: https://www.dropbox.com/s/byz03rtwud0a0cf/example.xlsx?dl=0
Is there any way to make it work faster? Perhaps change sumproduct to sumif somehow? Thank you for any help.
I have a quite big file of 30,000+ rows,. It's full of sumproduct formulas, It basically checks prices in sheet1
and adds them up in sheet2 to check how much employee earned and based on that what is going to be his salary(10% above minimum to earn + add on).
My only problem with this file is that it takes too much time adding or deleting new row/column that's beetween formula range. For example if I would like to get rid of rows with [1]JobName1 by filtering them and deleting, it can take even up to 1 hour to do it for every single employee.
D3 formula =if(counta(D6:D15)=0;"---";sumproduct(D6:D15;Sheet1!$C$2:$C$11)).
D2 formula, big one, that is probably cause of my problems =IFERROR(IF(D3>Sheet1!$A$4;(D3-Sheet1!$A$4)*(Sheet1!$A$2/100)+(SUMPRODUCT(Sheet1!$D$2:$D$11;--NOT(ISBLANK(D6:D15)))/COUNT(D6:D15));(SUMPRODUCT(Sheet1!$D$2:$D$11;--NOT(ISBLANK(D6:D15)))/COUNT(D6:D15)));0)+IFERROR(IF(D4>Sheet1!$A$4;(D4-Sheet1!$A$4)*(Sheet1!$A$2/100)+(SUMPPRODUCT(Sheet1!$D$12:$D$21;--NOT(ISBLANK(D16:D25)))/COUNT(D16:D25));(SUMPPRODUCT(Sheet1!$D$12:$D$21;--NOT(ISBLANK(D16:D25)))/COUNT(D16:D25)));0)+IFERROR(IF(D5>Sheet1!$A$4;(D5-Sheet1!$A$4)*(Sheet1!$A$2/100)+(SUMPRODUCT(Sheet1!$D$22:$D$31;--NOT(ISBLANK(D26:D35)))/COUNT(D26:D35));(SUMPRODUCT(Sheet1!$D$22:$D$31;--NOT(ISBLANK(D26:D35)))/COUNT(D26:D35)));0)
Link to example file: https://www.dropbox.com/s/byz03rtwud0a0cf/example.xlsx?dl=0
Is there any way to make it work faster? Perhaps change sumproduct to sumif somehow? Thank you for any help.