I have been applying this formula in my Excel spreadsheet but when I enter this formula in multiple cells, my Excel calculating processor slows down and eventually crashes. Is there any way to make this formula work faster?
Purpose of formula: To count filtered data with 2 conditions (Y being positive and subject name being X) applied within the formula.
Multiple cells as what I mean is that Dryness + absorbency is one of the fields. There are about few fields for different brands ( Brand A , Brand B , Brand C)
=SUMPRODUCT(
--(INDEX('Current Month'!$A:BJ,0,MATCH("Subject Name",'Current Month'!$A$1:$BJ$1,0))="Pampers"),
--(INDEX('Current Month'!$A:BJ,0,MATCH("Dryness + Absorbency",'Current Month'!$A$1:$AJ$1,0))="POSITIVE"),
--(IF(SUBTOTAL(103,INDIRECT("'Current Month'!$A"&ROW(A:A)&":$A"&ROW(A:A))),1,0)=1)
)
Hope someone can help as I have tried multiple times and my Excel keeps crashing. Thank you.
The reason excel is crashing is because:
INDEX('Current Month'!$A:BJ
That would be an array of over 65 million cells.
Name your array, only the rows needed, and use that instead of 'Current Month'!$A:BJ
. I didn't examine the rest of your formula, but this is where I would start. Same goes for the rest of your arrays.
您需要限制公式中的数组。
=SUMPRODUCT(SUBTOTAL(3,OFFSET('Current Month'!A1:A32,ROW('Current Month'!A1:A32)-MIN(ROW('Current Month'!A1:A32)),,1))*--(INDEX('Current Month'!$A1:BJ32,0,MATCH("Subject Name",'Current Month'!$A$1:$BJ$1,0))="Pampers")*--(INDEX('Current Month'!$A1:BJ32,0,MATCH("Dryness + Absorbency",'Current Month'!$A$1:$AJ$1,0))="POSITIVE"))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.