How to Highlight Blank Cells Only in Rows With Data in WPS Spreadsheets
Question details
The user wants to apply conditional formatting in WPS Office Spreadsheets so that blank cells are highlighted only when their row already contains other data, leaving completely empty rows unhighlighted.

- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- The user is setting up or auditing a data-entry range and needs to identify missing required values without flagging unused rows.
- Observed behavior
- A standard blank-cell conditional formatting rule also highlights blank cells in completely unused rows; the desired behavior is to limit highlighting to rows containing at least one value.
Select the exact target range and make sure the row reference in the formula matches the first row of your selected range. If your data has headers, begin the selection from the first data row.
Use a COUNTA and ISBLANK conditional formatting rule in WPS Spreadsheets
Use this solution when you want to highlight missing required cells in active rows while ignoring blank cells in completely unused rows.
The formula =AND(COUNTA($A2:$F2)>0,ISBLANK(A2)) highlights a blank cell only when another value exists somewhere in the same row. This keeps unused rows clean while drawing attention to incomplete data rows.
In WPS Office Spreadsheets, select the target range, for example A2:F5, then click Home > Conditional Formatting > New Rule.
In the New Formatting Rule dialog, select Use a formula to determine which cells to format.
In the formula box, type =AND(COUNTA($A2:$F2)>0,ISBLANK(A2)). Adjust $A2:$F2 and A2 to match your selected range and active cell.
Click Format, choose a fill color such as light red, then click OK twice to apply the rule. Only blank cells in rows that contain at least one value will be highlighted.

Highlight Missing Required Cells with WPS Spreadsheets
Use WPS Office Spreadsheets to apply a formula-based conditional formatting rule that highlights blank cells only in rows containing data, helping you quickly identify missing required entries without marking unused areas.
- 1. Open WPS Spreadsheets: Launch WPS Office Spreadsheets and open the workbook you want to format.
- 2. Select your data range: Select the target range, such as A2:F5, where blank required cells need to be checked.
- 3. Create a formula-based rule: Go to Home > Conditional Formatting > New Rule and choose Use a formula to determine which cells to format.
- 4. Apply the formula and format: Enter =AND(COUNTA($A2:$F2)>0,ISBLANK(A2)) and set a visible fill color.
- 5. Review the highlighted cells: Click OK to apply, then verify that blank cells in empty rows remain unhighlighted.

Frequently Asked Questions
Can I apply this rule to an entire column or a very large range?
Yes, but adjust the formula references and be aware that every row with any cell containing data will be evaluated. It is best to apply it to the actual data range, such as A2:F1000, to avoid unnecessary performance issues.
What does =AND(COUNTA($A2:$F2)>0,ISBLANK(A2)) do?
COUNTA($A2:$F2) counts non-empty cells in the current row, and ISBLANK(A2) checks whether the current cell is blank. The AND function highlights a blank cell only when both are true, meaning the row contains data elsewhere.
Why does the formula use $A2:$F2 but A2 without dollar signs?
The row reference is relative so each row is evaluated independently. The column range is fixed to check the whole row, while A2 refers to the active cell and updates across the selected cells.
Can I use a different highlight color or format?
Yes. In the Format dialog, you can choose any fill color, font style, or border. The formula remains the same regardless of the visual format you select.
Will this work if I open the file in Microsoft Excel?
Yes, conditional formatting rules and formulas are compatible with Excel .xlsx files, so the highlight behavior will remain when the file is opened in Microsoft Excel.




