Hi all- I have a worksheet (Sheet A) with several thousand rows and on each row, I have twelve monthly columns, each of which performs a cross-sheet sumproduct from data on sheet B. (Long story short, the sumproducts are splitting/spreading some value from sheet B.) The vast majority of these sumproducts will resolve to 0, and if there is nothing to spread for that line item, there's no reason to make Excel calc the sumproduct twelve times; I knew each of the twelve columns will be 0. I'm wondering if I can use a helper column to perform some logic to determine if the sumproduct is even needed (which would return a TRUE/FALSE), and then append an if statement in front of my sumproducts to look at my helper column. Essentially, I'd be reducing my sumproduct calcs for the 0 lines from twelve (for the monthly columns) to one (for the helper column).
The question boils down to: if the condition in an IF statement resolves to TRUE, does Excel completely ignore the [value if false] argument from a calculation perspective? Or are both [value if true] and [value if false] arguments calculated, and Excel will only return the relevant response based on the [logical test]?
The question boils down to: if the condition in an IF statement resolves to TRUE, does Excel completely ignore the [value if false] argument from a calculation perspective? Or are both [value if true] and [value if false] arguments calculated, and Excel will only return the relevant response based on the [logical test]?