Formatting Issues

How to Turn Column A Red When Any Cell in a Row Contains "No" in Excel

Chanuka GeekiyanageChanuka Geekiyanage Nov 10, 2026 869 views

Question details

The user wants to apply a conditional formatting rule that changes the background color of a specific cell in Column A to red if any cell within a specified range in the same row contains the text "No".

How to Turn Column A Red When Any Cell in a Row Contains "No"
Product
Excel
Device & OS
not provided
Scenario
Reviewing audit data or patient records where a primary identifier column needs to be flagged automatically if any associated row items show a negative result or failure.
Observed behavior
The goal state is that modifying any target cell in the row to "No" will dynamically trigger a red fill on the corresponding cell in Column A.
Before you start

Ensure your dataset does not contain merged cells within the target range, as merged cells can offset formula references and cause conditional formatting rules to highlight incorrect rows.

Solution 1Recommended

Use an OR Formula in Conditional Formatting

Apply a custom formula rule using the OR function to evaluate multiple columns in a row, triggering a format change in Column A.

By utilizing mixed cell references (e.g., locking the column with a dollar sign like $I2 but leaving the row relative), Excel can accurately evaluate the condition for each individual row across your selected range.

The OR function checks if any single cell in the designated array matches the target criteria. If at least one cell contains "No", the formula returns TRUE and the formatting is applied.

1
Select the Target Range

Highlight the range in Column A where you want the red fill to appear (for example, A2:A100). Ensure that the top-most cell (A2) is the active cell during this selection.

2
Open the Conditional Formatting Menu

Navigate to the Home tab on the top ribbon, click on Conditional Formatting, and select New Rule from the dropdown menu.

3
Enter the Custom Formula

Choose the option "Use a formula to determine which cells to format". In the formula box, enter `=OR($I2:$P2="No")`. Adjust the I and P column letters to match the exact start and end of your audit data range.

4
Configure the Red Fill

Click the Format button, switch to the Fill tab, and select a red background color. Click OK twice to apply and save the rule.

Use an OR Formula in Conditional Formatting
Understanding Relative Row References: Using the dollar sign ($) before the column letters ensures the formula always evaluates columns I through P. Omitting the dollar sign before the row number (2) allows the rule to cascade dynamically down through row 3, 4, 100, etc.
Advanced Formatting in WPS Spreadsheet

Automate Cell Highlighting Easily with WPS Spreadsheet

WPS Spreadsheet fully supports advanced conditional formatting rules, including complex formula-based logic like the OR function, making it incredibly easy to track discrepancies and visualize your data.

  1. 1. Highlight Target Cells: Open your dataset in WPS Spreadsheet and select the cells in Column A that you wish to format (e.g., A2:A100).
  2. 2. Access Conditional Formatting: Go to the Home tab, click on the Conditional Formatting icon, and choose New Rule.
  3. 3. Input the Formula: Select "Use a formula to format cells" and type `=OR($I2:$P2="No")` in the input field.
  4. 4. Apply Color Format: Click the Format button, select a red fill color, and click OK to instantly highlight the relevant patient or identifier names.
Easily apply custom formula-based conditional formatting to flag dataFully compatible with Microsoft Excel (.xlsx) formats and rulesFree, lightweight, and fast to process large datasets without laggingIntuitive user interface for managing multiple conditional rules simultaneously
QA img-9

Frequently Asked Questions

Can I format the entire row instead of just Column A?

Yes. To highlight the entire row, select your entire data table (for example, A2:P100) instead of just Column A before creating the rule. Use the exact same formula `=OR($I2:$P2="No")`. The absolute column references will ensure the whole row turns red when the condition is met.

Why is my conditional formatting highlighting the wrong rows?

This commonly happens if the row number in your formula does not match the active row of your selection. If you started selecting your range from cell A2, your formula must reference row 2 (e.g., $I2:$P2). If your active cell is A3, the formula must reference row 3.

How do I change the condition to highlight a different word like 'Fail'?

You can easily customize the criteria by replacing the text in the formula. To check for the word 'Fail', change your conditional formatting formula to `=OR($I2:$P2="Fail")`. Ensure the text remains enclosed in double quotation marks.

Will blank cells trigger the red conditional formatting?

No. The formula `=OR($I2:$P2="No")` specifically looks for cells containing the exact text "No". Blank cells or cells containing other data will be ignored and will not trigger the formatting.