Formula Errors

Fix Excel IF and Conditional Formatting Formulas Returning FALSE

Algirdas JasaitisAlgirdas Jasaitis Nov 12, 2026 868 views

Question details

The user needs to correct a conditional-formatting formula that returns FALSE when two cells appear to contain equal values.

Product
Microsoft Excel
Device & OS
not provided
Scenario
A comparison uses a value produced by an arithmetic formula, and the user wants conditional formatting to identify matching values reliably.
Observed behavior
The IF or conditional-formatting formula returns FALSE even though the displayed values in K14 and L14 appear equal, likely because of unnecessary IF syntax, quotation marks, or decimal precision differences.
Before you start

Select K14 and L14 one at a time and inspect their full-precision values in the formula bar. Confirm whether the conditional-formatting rule is using a formula without quotation marks and identify the number of decimal places that should count as equal.

Solution 1Recommended

Use a direct equality formula in the conditional-formatting rule

Use this solution when the rule only needs to test whether K14 and L14 are equal; an IF function is not required.

A comparison such as =K14=L14 already returns TRUE or FALSE. In a conditional-formatting rule, enter the comparison directly and do not wrap it in quotation marks.

1
Select the formatted range

In Excel, select the cells that should receive the rule, including the range whose first row corresponds to K14 and L14.

2
Open the rule editor

Go to Home > Conditional Formatting > Manage Rules, select the relevant rule, and click Edit Rule. If needed, choose New Rule > Use a formula to determine which cells to format.

3
Enter the comparison formula

In the formula field, enter =(K14=L14) without quotation marks, then choose a format and click OK or Apply.

4
Check relative references

Verify that K14 and L14 are relative references unless every formatted row must compare to those exact cells. Test the rule by changing one value temporarily.

Simpler formula: Because the equality test already produces TRUE or FALSE, adding IF only makes the conditional-formatting rule more complicated.

Compare rounded values and create reliable conditional formatting in WPS Spreadsheets

WPS Spreadsheets can open the workbook, simplify the equality test, round calculated values to the required precision, and apply the corrected formula through its Conditional Formatting tools.

  1. 1. Open the workbook: Launch WPS Office, open the spreadsheet, and select the cells or range that uses the conditional-formatting rule.
  2. 2. Edit the conditional-formatting rule: Go to Home > Conditional Formatting > Manage Rules, select the rule, and choose Edit Rule or create a formula-based rule.
  3. 3. Enter a direct comparison: Use =(K14=L14) without quotation marks when the stored values should match exactly.
  4. 4. Round the values when needed: If hidden decimal precision causes the mismatch, use =ROUND(K14,0)=ROUND(L14,0) or =ROUND(K14-L14,0)=0, changing 0 to the required decimal places.
  5. 5. Apply and save the file: Click Apply or OK, verify the formatting, and save the workbook in .xlsx format when continued Excel compatibility is required.
Create direct TRUE/FALSE comparisons without unnecessary IF functionsHandle arithmetic precision with ROUND-based comparison formulasOpen and edit Microsoft Excel .xlsx workbooks with strong format compatibilityUse a familiar spreadsheet interface for conditional formatting and formula troubleshooting
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel return FALSE when K14 and L14 look the same?

The cells may contain different hidden decimal digits even though their displayed values match. Compare rounded values with =ROUND(K14,0)=ROUND(L14,0), or use the appropriate number of decimal places.

Do I need IF for an Excel conditional-formatting comparison?

No. The formula =K14=L14 already returns TRUE or FALSE, so it can be entered directly in the conditional-formatting formula field.

Should quotation marks surround the conditional-formatting formula?

No. Enter =(K14=L14) as a formula without quotation marks. Quotation marks can make the rule treat the expression as text instead of evaluating the comparison.

How can I compare whole numbers when the source values come from calculations?

Use =ROUND(K14,0)=ROUND(L14,0) to round both values to whole numbers, or use =ROUND(K14-L14,0)=0 to test whether their rounded difference is zero.

Will the formula adjust for other rows in the formatted range?

Relative references such as K14 and L14 normally adjust for each row when the rule is applied to a range. Confirm the Applies to range and use absolute references only when the comparison must always use fixed cells.