Function Problems

Count Yes Checks and Calculate Yellow Check Percentages in Excel

Tauseeq MagsiTauseeq Magsi Nov 18, 2026 869 views

Question details

Count Yes responses in each row, count those in yellow cells, and calculate their percentage of all Yes responses.

Count Yes Checks and Calculate Yellow Check Percentages in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user wants to score test results quickly using row-by-row counts and percentages.
Observed behavior
The desired result is a total Yes count, a yellow-cell Yes count, and the yellow count as a percentage of the total.
Before you start

Check that the responses are stored as Yes or No values and identify which cells in each row are yellow. The first method assumes the yellow cells occupy a known, continuous range.

Solution 1Recommended

Use COUNTIF for a fixed yellow-cell range

Use this method when the yellow cells are in the same continuous columns for every row.

In this example, B2:H2 contains all responses and E2:G2 contains the yellow cells. Adjust the ranges to match your sheet.

1
Count all Yes responses

In a blank result cell such as I2, enter =COUNTIF(B2:H2,"Yes").

2
Count Yes responses in yellow cells

In J2, enter =COUNTIF(E2:G2,"Yes") to count Yes values in the designated yellow range.

3
Calculate the percentage

In K2, enter =IFERROR(J2/I2,0), then select K2 and choose Home > Percent Style.

4
Apply the formulas to other rows

Select I2:K2 and drag the fill handle down through the remaining test rows.

Use COUNTIF for a fixed yellow-cell range
Fill color is not detected: COUNTIF counts values in the specified range, not cells by fill color. If the yellow cells change, update the range or use a helper indicator.
Calculate test scores in WPS

Count Yes Responses and Calculate Percentages in WPS Spreadsheets

Use COUNTIF and IFERROR in WPS Spreadsheets to calculate total Yes responses, Yes responses in a designated yellow range, and their percentage.

  1. 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
  2. 2. Count all Yes responses: In a blank cell such as I2, enter =COUNTIF(B2:H2,"Yes"), adjusting the range to match your responses.
  3. 3. Count the designated yellow range: In J2, enter =COUNTIF(E2:G2,"Yes"), replacing E2:G2 with the continuous range of yellow cells.
  4. 4. Calculate and format the percentage: In K2, enter =IFERROR(J2/I2,0), then select K2 and choose Percent Style on the Home tab. Drag the formulas down to apply them to other rows.
Count Yes responses in a designated yellow-cell range.Calculate row-by-row percentages and copy formulas down.Open and edit Microsoft Excel XLS and XLSX files.Use familiar spreadsheet formulas and formatting controls.
microsoft office alternative - wps office

Frequently Asked Questions

Can COUNTIF detect yellow cell fill?

No. COUNTIF evaluates cell values, not fill colors. Specify the yellow cells as a range, use helper indicators, or use VBA if the fill color itself must be inspected.

What happens if a row has no Yes responses?

The formula =IFERROR(J2/I2,0) returns 0 instead of a division error when the total Yes count in I2 is zero.

How do I count Yes values in nonadjacent yellow columns?

Mark the relevant columns with helper labels, then use SUMPRODUCT to test both the Yes values and the labels. Update the labels when the designated columns change.

How do I show the result as a percentage?

Select the cell containing the division formula and choose Home > Percent Style. For example, a result of 0.5 appears as 50%.