How to Apply Conditional Formatting Based on Column Value in WPS Spreadsheet
Question details
The user wants to apply a conditional formatting rule to highlight entire rows when the value in Column A meets a specific condition.

- Product
- WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Formatting a multi-column dataset where the highlight color of each entire row depends dynamically on the data contained in the first column of that corresponding row.
- Observed behavior
- Using an absolute reference (like $A$1) causes every row in the selected range to be evaluated against the exact same single cell, resulting in incorrect highlighting.
Verify whether your dataset includes a header row, as this determines the correct starting row number for your conditional formatting formula.
Use a Mixed Reference for the Conditional Formatting Rule
By locking the column reference but keeping the row reference relative, the conditional formatting rule adapts to evaluate each row individually.
When applying conditional formatting across multiple columns based on a single column's value, you must use a mixed cell reference (e.g., $A1). The dollar sign ($) locks Column A, ensuring the condition always looks at that specific column, while the absence of a dollar sign before the row number allows the formula to adjust dynamically as it evaluates each subsequent row.
Highlight the entire range of cells you want to format, such as $B$2:$N$99. If you have headers in row 1, make sure to start your selection from row 2.
Navigate to the 'Home' tab on the top ribbon and click on 'Conditional Formatting', then select 'New Rule' from the dropdown menu.
In the New Formatting Rule dialog box, select 'Use a formula to determine which cells to format'.
Type your formula into the input box using a mixed reference that corresponds to the first row of your selection. For example, if your data starts on row 2, enter =$A2=0.
Click the 'Format' button to choose your desired fill color or text styling, then click 'OK' to apply the rule to your selected range.

Master Conditional Formatting with WPS Spreadsheet
WPS Spreadsheet provides an intuitive and powerful interface for advanced data visualization. Easily highlight rows, track metrics, and manage complex datasets with formula-based conditional formatting.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open the worksheet containing your dataset.
- 2. Select your data: Click and drag to highlight the entire range of rows and columns you wish to format.
- 3. Access conditional formatting: Go to the 'Home' tab, click 'Conditional Formatting', and select 'New Rule'.
- 4. Apply a formula rule: Choose the formula option and enter your mixed reference, such as =$A2="Target".
- 5. Customize appearance: Select your preferred highlight color and click 'OK' to see your data instantly formatted.

Frequently Asked Questions
Why is my conditional formatting rule highlighting the wrong rows?
This usually happens when the row number in your formula does not match the first row of your selected data range. For example, if you highlight B2:N100 but your formula is =$A1=0, the formatting will be offset by one row. Change the formula to =$A2=0 to fix this.
What is the difference between $A$1, $A1, and A$1 in spreadsheet formulas?
$A$1 is an absolute reference that strictly locks both the column and the row. $A1 is a mixed reference that locks the column but allows the row to change dynamically. A$1 locks the row but allows the column to change. For row-by-row conditional formatting based on a specific column, $A1 is the correct format.
Can I base my row highlighting on text values instead of numbers?
Yes. You can use text strings in your conditional formatting formula. Just enclose the target text in double quotation marks. For example, the formula =$A2="Completed" will highlight the entire row whenever the word 'Completed' appears in Column A.
How do I edit a conditional formatting rule I already created?
Highlight the affected cells, go to the 'Home' tab, click 'Conditional Formatting', and select 'Manage Rules'. Select your rule from the list and click 'Edit Rule' to update the formula or change the color format.




