r/excel • u/GayADHDLurker • 6h ago
unsolved Conditional formatting: highlighting both positive and negative percentages above a certain threshold
I work in workforce management, I inherited an excel from someone who left the company and I dont understand one of the conditional formats he set.
He has formulas
=AND(ABS(T4)>0.35,ABS(E4)<=0.4) make the cell dark orange
=AND(ABS(T4)>0.2,ABS(E4)<=0.3) make the cell light orange
This is applied to cells T4:T9 but cell T4 specifically never seems changed
What i want is if the number is 25-59% (positive and negative, meaning above forcast or below forecast) its light orange and if its 60% or more (positive and negative, meaning above forecast or below) its dark orange
I attempted making if >.25 light orange and then if <-.25 light orange but no success
•
u/AutoModerator 6h ago
/u/GayADHDLurker - Your post was submitted successfully.
Solution Verifiedto close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/seandowling73 4 6h ago
I would just create a copy of the sheet and try removing all conditional formatting rules and the re-create them
1
u/PaulieThePolarBear 1927 6h ago
What do you mean by "the number"? The formulas you presented are referencing two different cells
1
u/diegojones4 6 5h ago
Conditional formatting sucks in my opinion. Just use VBA.
Sub HighlightSend() 'Pre email
On Error Resume Next
2
u/ConsoliSheet 6h ago
T4 not changing is usually one of the two things: the "Applies to" range is relative (T4:T9 instead of $T$4: $T$9), or T4 has a manual fill color on it, which overrides conditional formatting.
For your thresholds, delete the old rules and add two new ones:
. Light orange (25% to 59%, both direction): =AND(ABS(T4)>=0.25,ABS(T4)<0.6)
. Dark orange (60%+): =ABS(T4)>=0.6
Put the dark orange rule above the light orange one, tick Stop if true on it, and set "Applies to" to =$T$$: $T$(. The ABS handle positive and negative the same way, so +30% and -30% both go light orange, and +60% and -60% both go dark orange.
1
u/HappierThan 1193 4h ago
In case you may wish to change criteria in the future, why not place your figures in cells which can then be changed temporarily without changing Conditional Formatting formulas. For your 1st condition it may be more practical to use 2 CF Rules both with AND formulas and the 2nd condition with an OR formula.
Light Orange =AND(T4>=$V$1,T4<$W$1) & then =AND(T4<=($V$1*-1),T4>($W$1*-1))
Dark Orange =OR(T4>=$W$1,T4<=($W$1*-1))
1
u/Decronym 4h ago edited 1h ago
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.
Beep-boop, I am a helper bot. Please do not verify me as a solution.
[Thread #49741 for this sub, first seen 25th Nov 2026, 00:24] [FAQ] [Full list] ^[Contact] [Source code]