Excel SUMIFS function can’t execute if the other workbooks is closed. So, i did a SUMIFS function that opens my workbook, iterate via ‘for’ loop and verify if the value column needs to be added in my total variable.
I did another function that removes my ‘for’ loop and uses “WorksheetFunction.SumIfs(…)”. My new function ran fastest than the old one.
What is the magic behind excel functions and VBA iteration?
From: http://msdn.microsoft.com/en-us/library/ff726673.aspx#xlUsingFuncts
(emphasis added)