Forum Discussion

Hogstad_Raadgivning's avatar
Hogstad_Raadgivning
Iron Contributor
Jul 14, 2021
Solved

Conditional formating using sumproduct formula

Hi,   I would like to change the color of a cell using sumproduct., or any other formula that does the job.    The color should change if number of employees is less than the value in E4 (2)   ...
  • PeterBartholomew1's avatar
    Jul 14, 2021

    Hogstad_Raadgivning 

    Without a test workbook I cannot be sure but I would suggest moving the formula to a Defined Name e.g. 'underManned?'.  Some aspects of formula evaluation are not as good as they could be within Conditional Formatting.

    Other observations are that the coercion from TRUE/FALSE to 1/0 will take place when you multiply conditions so the '--' are surplus to requirements, and that a formula evaluated within Name Manager is always an array calculation (like 365) so SUM will work as well as SUMPRODUCT in that context.

    This way the formula used for the conditional formatting is

    = underManned?

Resources