Okay my conditional formatting rules is not working what am i doing wrong
=G3<4=G3>=4<5
=G3>=6=G3:G28>=8
Assistant
Let's review your conditional formatting rules and identify the problems:
=$G3<4
This rule looks fine if you want to apply formatting when the value in column G of the current row is less than 4.
Just make sure you apply this rule starting from row 3 onward and that your range starts at row 3 (e.g., ).
User
okay well its involveing me having a visual for the threat levels of my cybersecurity tool kit the range is 1-9 and I have 4 colors representing low, medium, high, and critical
Assistant
Great! To visualize threat levels from 1 to 9 using 4 colors and conditional formatting, you can set ranges for each threat level and apply a color for each.
Suggested categories for 1-9:
Threat Level Value
Category
Example Formatting Color
1 to 3
Low
Green (safe)
G3:G28
=$G3>=4<5
This is NOT a valid rule. You cannot chain inequalities like this directly.
In Excel/Google Sheets formulas, you need to combine conditions with logical operators.
Correct way: =AND($G3>=4, $G3<5) which means "value in G3 is greater than or equal to 4 AND less than 5."
=$G3>=6
This is valid if you want to format cells when value in column G of the row is 6 or greater.
Note you're missing a rule for the range 5 to 6 if you want a smooth categorization.
=$G3:G28>=8
This is not a valid conditional formatting formula.
You generally apply the rule on the top-left cell of your selection and write formulas accordingly.
You cannot include a range like $G3:G28 inside a formula that applies row-wise or cell-wise.
Probably you only want something like =$G3>=8 and apply that over your selection.
Summary / Corrected rules:
If your data is in G3:G28 and you want to apply different color formatting based on values, you could use:
Formula 1: Format if less than 4 =$G3<4
Formula 2: Format if between 4 and less than 5 =AND($G3>=4, $G3<5)
Formula 3: Format if between 5 and less than 6 (optional if needed) =AND($G3>=5, $G3<6)
Formula 4: Format if equal or greater than 6 =$G3>=6
Or, if you want to specifically check for >=8, then: =$G3>=8
Tips:
When entering formulas in conditional formatting, always refer to the upper-left cell of your range (e.g., G3) and use absolute references ($G) correctly to fix the column and relative row references if you want it to apply row-wise.
If you want me to format your sheet or help with a specific coloring rule, feel free to share!
4 to 5
Medium
Yellow
6 to 7
High
Orange
8 to 9
Critical
Red
Steps to set up conditional formatting:
Select the cells in column G where your threat levels are (e.g., G3:G28).
Go to Conditional Formatting and choose "Custom formula" (in Google Sheets) or "Use a formula to determine which cells to format" (in Excel).
Enter the formulas below for each rule, one at a time, and assign the corresponding color:
Conditional Formatting Formulas:
Low (1 to 3): Green
Formula: =AND($G3>=1, $G3<=3)
Medium (4 to 5): Yellow
Formula: =AND($G3>=4, $G3<=5)
High (6 to 7): Orange
Formula: =AND($G3>=6, $G3<=7)
Critical (8 to 9): Red
Formula: =AND($G3>=8, $G3<=9)
Important:
Make sure you apply these rules in order, because if there's any overlap, the first rule to match will apply.
Use absolute column referencing ($G) and relative row (3) so formatting applies row-wise correctly.
Confirm your data does not contain values outside 1-9 range, or you can add an extra rule or leave them unformatted.
Bonus:
If your threat levels might be decimal numbers (like 4.5), formulas still work fine.
If you want, I can also help you write a single formula with a color scale instead of fixed bands, e.g., using Google Sheets’ “Color scale” formatting.
Let me know if you want me to help with that or anything else!