Excel conditional formatting formula not working
Tutor 5 (8 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
A conditional formatting formula in Excel may not work due to several common reasons. Understanding these issues allows for quick troubleshooting and correction.
1. Check Formula Syntax
A conditional formatting formula must follow Excel’s syntax rules. Common issues include:
-
Missing equals sign (
=) at the start of the formula. -
Incorrect use of relative and absolute references.
-
Using functions incorrectly or unsupported functions.
Example:
To highlight cells in column A that are greater than 100, the correct formula is:
=A1>100
Using A>100 without specifying the cell reference will not work.
2. Verify Cell References
Relative and absolute references affect how Excel applies the formula across the range.
-
Relative Reference (
A1): Adjusts based on the cell position. -
Absolute Reference (
$A$1): Remains fixed for all cells in the range.
Example:
To highlight all cells in column A greater than the value in B1:
=A1>$B$1
Failing to use $ signs for the reference can lead to inconsistent results.
3. Ensure the Correct Range is Selected
Conditional formatting applies the formula to the selected range.
-
Select the exact range before entering the formula.
-
If the formula uses
A1as a reference but the range starts atB2, Excel may misapply the condition.
Example:
If formatting the range B2:B10 using the formula =A1>100, it will compare B2 to A1, B3 to A2, which may be unintended. The formula must match the first cell of the range.
4. Check for Hidden Characters or Formatting
-
Leading or trailing spaces in cells may prevent numeric comparisons.
-
Text-formatted numbers are not evaluated correctly by numeric formulas.
-
Use
TRIM()orVALUE()functions if needed.
Example:
If a cell contains " 100 " (with spaces), =A1>50 may not trigger formatting. Correct with:
=VALUE(TRIM(A1))>50
5. Evaluate Logical Errors
Conditional formatting formulas must return TRUE or FALSE.
-
Using
=SUM(A1:A5)>100is correct because it returns TRUE or FALSE. -
Using
=SUM(A1:A5)alone is incorrect because it returns a number.6. Ensure No Conflicting Rules Exist
Multiple conditional formatting rules can override each other.
-
Open Home → Conditional Formatting → Manage Rules.
-
Check rule priority and stop-if-true options.
7. Check Excel Version and Platform Differences
Some formulas behave differently on Windows vs. Mac:
-
Mac may require using
;instead of,in formulas.=IF(A1>100;"Yes";"No") // Mac
=IF(A1>100,"Yes","No") // Windows -
Certain dynamic array functions like
FILTER()orUNIQUE()may not work in older versions.
8. Test the Formula Directly
-
Enter the formula in a blank cell.
-
Ensure it returns TRUE or FALSE for the intended conditions.
-
Copy the exact working formula into conditional formatting.
Summary of Steps to Fix
-
Ensure formula starts with
=and returns TRUE/FALSE. -
Correctly use relative and absolute references.
-
Match the formula to the range starting cell.
-
Remove hidden spaces or convert text numbers to numeric values.
-
Check for conflicting formatting rules.
-
Adjust formula syntax for your Excel version and platform.
Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
Excel chart axis labels not showing
Answers · 1
Excel chart title not showing
Answers · 1
Excel chart labels not showing
Answers · 1
Excel chart not showing data
Answers · 1