How to Decrease an Excel Total When 'Yes' Is Entered
Question details
The user wants to automatically reduce an original numerical total by one for every cell within a specific column that contains the word 'Yes'.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking checklist progress or inventory by subtracting completed or checked items (marked as 'Yes') from an initial total value.
- Observed behavior
- A dynamic formula is required to subtract the total count of 'Yes' entries from the designated base total cell.
Ensure your original starting total is placed in a dedicated cell (e.g., A1) and identify the exact column range where you will be typing 'Yes'.
Use the COUNTIF Formula to Subtract Checked Items
Combine basic subtraction with the COUNTIF function to count specific text entries and deduct them from your main total dynamically.
The COUNTIF function scans a range of cells for a specific criterion, such as the text 'Yes', and returns the total number of times it appears. By subtracting this result from your base number, your total will update automatically whenever a new 'Yes' is added.
Click on the cell where your remaining total will be displayed. Note the cell reference containing your original starting total (for example, cell A1).
Type `=` followed by your original total cell reference (e.g., `=A1`), then type the minus sign `-` to begin the subtraction.
Append `COUNTIF(C2:C100,"Yes")` to the formula, replacing `C2:C100` with the actual range of your checked column. The final formula should look like `=A1-COUNTIF(C2:C100,"Yes")`.
Press the Enter key. The cell will now display the original total minus the number of 'Yes' entries in the specified range.
Calculate Totals with COUNTIF in WPS Spreadsheet
Easily track totals, subtract checked items, and apply advanced functions like COUNTIF seamlessly using WPS Spreadsheet. It offers a familiar interface and comprehensive formula support for all your data needs.
- 1. Open your spreadsheet: Launch WPS Spreadsheet and open the file where you need to track your dynamic totals.
- 2. Input your base data: Enter your starting total in a dedicated cell (like A1) and prepare a column for your 'Yes' checks.
- 3. Enter the formula: Select the result cell, type `=A1-COUNTIF(C2:C100,"Yes")` (adjusting references as needed), and press Enter to apply.

Frequently Asked Questions
Is the COUNTIF function case-sensitive in Excel?
No, the COUNTIF function is not case-sensitive. It will count 'yes', 'Yes', and 'YES' identically and subtract them from your total.
Can I decrease the total based on multiple different text values?
Yes. You can chain multiple COUNTIF functions together in your formula (e.g., `=A1-COUNTIF(C2:C100,"Yes")-COUNTIF(C2:C100,"Done")`) to subtract counts for different words.
What if I want to subtract a count of cells that are simply not empty?
If you want to reduce the total for any entry regardless of the text, use the COUNTA function instead. The formula would be `=A1-COUNTA(C2:C100)`.




