make this formula shorter and more efficient while maintaining all criteria…
- User
make this formula shorter and more efficient while maintaining all criteria possibilities: =LET( jarir, 2, extra, 3, branded, 4, unbranded, 5, primaryLOB, 12, primaryTier, 13, primarySSub, 14, primaryConfig, 15, primaryColor, 16, sumCriteria, LAMBDA(hq,prog, IF(AND( NOT(6), NOT(7) ),
- Assistant
Your formula can indeed be simplified by reducing redundancy and improving efficiency. The key to shortening it is using an intermediate calculation for repeated
SUMIFSand reducing nestedIFstatements. Here’s a more concise version of your original formula:excel - User
when d6 and d7 are false, I want it to ignore those criteria and return the other criterias results
- Assistant
To achieve the functionality where the formula ignores the criteria related to
D6andD7when both are false, you can modify the function so that it conditionally checks these flags before including the corresponding filters in the logic. If both and are false, those criteria will not be applied.