I'm using a nested IF statement to determine the colour of RYG balls in Column 'YTD Health', using data from an adjacent column of percentages. The percentages listed are a combination of negative and positive values.
What I want to happen is this:
Values 0 to -40% = Yellow
Values less than -41% = Red
Values 0 and greater = Green
Anything else = Error
I know that because I'm referencing percentages that I need to use decimals, so my current IF statement in the 'YTD Health' column looks like this:
=IF([YTD Position (Variance from target)]1 <= -0.4, "Yellow",
IF([YTD Position (Variance from target)]1 <= -0.41, "Red",
IF([YTD Position (Variance from target)]1 >= 0, "Green", "Error")))
It's working for most cells, but not all. E.g. -80% should be red...? See attached.