Function Problems

How to Highlight Rows and Count Values with Conditional Formatting and COUNTIF in WPS Spreadsheets

Tauseeq MagsiTauseeq Magsi Nov 13, 2026 869 views

Question details

The user wants to format an entire row in a spreadsheet when the value in column C reaches 25, and count matching values with COUNTIF.

How to Use Conditional Formatting and COUNTIF in WPS Spreadsheets for Values Reaching 25
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
Managing a worksheet where rows should be visually flagged when a value in column C reaches 25, and where matching values need to be counted.
Observed behavior
The user needs guidance on creating a formula-based conditional formatting rule for entire rows and on using COUNTIF to count values equal to 25.
Before you start

Open your workbook in WPS Spreadsheets and confirm which column contains the threshold values, for example column C. If you want the formula =$C2>=25 to start at row 2, make sure row 2 is the active cell in the selected range.

Solution 1Recommended

Highlight Entire Rows with Formula-Based Conditional Formatting When Column C Reaches 25

Use this method when you want WPS Spreadsheets to apply dark red bold strikethrough formatting across an entire row whenever the column C value is 25 or greater.

Conditional formatting can set font color, bold, and strikethrough, but it cannot change font family or font size.

1
Select the target range

Select the range you want to format, for example A2:D26, with the active cell in row 2.

2
Open the New Formatting Rule dialog

On the Home tab, click Conditional Formatting, then select New Rule.

3
Choose a formula-based rule

Select the option "Use a formula to determine which cells to format".

4
Enter the threshold formula

In the formula field, enter =$C2>=25.

5
Apply the font formatting

Click Format, open the Font tab, select Strikethrough and Bold, and choose dark red as the font color. Confirm the rule to apply it.

Highlight Entire Rows with Formula-Based Conditional Formatting When Column C Reaches 25
Formatting applied: All rows where column C is 25 or greater will now show the dark red bold strikethrough formatting.
WPS Spreadsheets formula tools

Use WPS Spreadsheets to Highlight Rows and Count Values with Conditional Formatting and COUNTIF

You can complete this task directly in WPS Spreadsheets by creating a formula-based conditional formatting rule to highlight entire rows when column C reaches 25, and by using COUNTIF to total matching values.

  1. 1. Open your workbook: Launch WPS Spreadsheets and open the workbook containing the data.
  2. 2. Select the data range: Select the range you want to format, with the active cell in row 2, such as A2:D26.
  3. 3. Create the conditional formatting rule: Go to Home > Conditional Formatting > New Rule, choose a formula-based rule, and enter =$C2>=25.
  4. 4. Set the desired formatting: Click Format, open the Font tab, and apply dark red font color, Bold, and Strikethrough.
  5. 5. Count the matching values: Click a result cell and enter =COUNTIF(C2:C26,25), then press Enter.
Free formula-based conditional formatting tools for row highlightingBuilt-in COUNTIF function works with Excel-compatible worksheetsOpens and saves .xlsx, .xls, and .csv files without losing conditional formattingFamiliar ribbon interface makes switching from Microsoft Excel easier
microsoft office alternative - wps office

Frequently Asked Questions

Can conditional formatting change font family or font size in WPS Spreadsheets?

No, conditional formatting can set font color, bold, and strikethrough, but it cannot change font family or font size. Change those in regular cell formatting instead.

How do I apply the rule to an entire row instead of only column C?

Select the entire range you want to format, such as A2:D26, and use the formula =$C2>=25. The $ before C locks the column, while the row number increments for each row.

What COUNTIF formula counts only cells equal to 25?

Use =COUNTIF(C2:C26,25). This returns the number of cells in C2:C26 that exactly equal 25.

Can I use a cell reference instead of typing 25 in COUNTIF?

Yes. Put the threshold value in a cell, such as F1, and use =COUNTIF(C2:C26,F1). The formula will count cells equal to the value in F1.

What should I do if my data starts in a different row?

Adjust the row reference in the conditional formatting formula to match the active row. For example, if the active row is 5, use =$C5>=25.