Count Yes Checks and Calculate Yellow Check Percentages in Excel
Question details
Count Yes responses in each row, count those in yellow cells, and calculate their percentage of all Yes responses.

- 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.
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.
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.
In a blank result cell such as I2, enter =COUNTIF(B2:H2,"Yes").
In J2, enter =COUNTIF(E2:G2,"Yes") to count Yes values in the designated yellow range.
In K2, enter =IFERROR(J2/I2,0), then select K2 and choose Home > Percent Style.
Select I2:K2 and drag the fill handle down through the remaining test rows.

Mark yellow columns with helper indicators
Use helper labels when the yellow cells are in nonadjacent columns but the same columns apply to each row.
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. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 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. Count the designated yellow range: In J2, enter =COUNTIF(E2:G2,"Yes"), replacing E2:G2 with the continuous range of yellow cells.
- 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.

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%.




