Highlight Columns E and F Based on Column H in WPS Spreadsheets
Question details
Highlight cells in columns E and F when the corresponding cell in column H contains Yes.

- Product
- Spreadsheet software (not specified)
- Device & OS
- not provided
- Scenario
- Apply yellow conditional formatting to columns E and F based on values in column H of the same row.
- Observed behavior
- Cells in columns E and F should turn yellow when the corresponding column H cell meets the Yes condition.
Identify the first data row and the last row to format. The examples below use E2:F100 and assume row 2 is the first data row.
Highlight rows where column H equals Yes
Use this formula when the column H cell contains Yes as its complete value.
The dollar sign locks the reference to column H, while the row number changes for each row in the selected range.
In WPS Spreadsheets, select E2:F100, or select the equivalent range containing your data.
Go to Home > Conditional Formatting > New Rule and choose the option to use a formula to determine which cells to format.
Enter =$H2="Yes" in the formula field. If your selected range starts on another row, replace 2 with that row number.
Open Format, choose a yellow fill, and confirm the format and rule. Check that the rule applies to E2:F100.

Highlight rows where column H contains Yes within longer text
Use this option when the column H cell may contain additional text alongside Yes.
Apply conditional formatting across columns in WPS Spreadsheets
Use a formula-based rule in WPS Spreadsheets to check column H and automatically highlight the corresponding cells in columns E and F.
- 1. Open your spreadsheet: Open the workbook in WPS Spreadsheets and select the worksheet containing columns E, F, and H.
- 2. Select the cells to highlight: Select E2:F100, or adjust the range to cover your data.
- 3. Create the rule: Choose Home > Conditional Formatting > New Rule, select the formula option, and enter =$H2="Yes".
- 4. Choose yellow: Open Format, select a yellow fill, and confirm the rule.

Frequently Asked Questions
Why does the formula use $H2 instead of H2?
The dollar sign keeps the reference in column H for both columns E and F. The row number remains relative, so each row checks its own column H cell.
What if my data starts on row 5?
Select a range beginning on row 5, such as E5:F100, and enter =$H5="Yes" in the conditional formatting rule.
How do I match Yes inside a longer cell value?
Use =ISNUMBER(SEARCH("Yes",$H2)) in the formula-based conditional formatting rule. It matches Yes anywhere in the text, including within longer words.
Will the exact-match rule highlight a cell containing YES?
Yes. The formula =$H2="Yes" compares text without distinguishing uppercase from lowercase.




