logo
search
Function Problems

How to Decrease an Excel Total When 'Yes' Is Entered

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

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

Using COUNTIF formula to count cells with data in Excel
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.
Before you start

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

Solution 1Recommended

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.

1
Locate your base total

Click on the cell where your remaining total will be displayed. Note the cell reference containing your original starting total (for example, cell A1).

2
Input the calculation formula

Type `=` followed by your original total cell reference (e.g., `=A1`), then type the minus sign `-` to begin the subtraction.

3
Add the COUNTIF function

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")`.

4
Apply the formula

Press the Enter key. The cell will now display the original total minus the number of 'Yes' entries in the specified range.

Dynamic Calculation: Your total will now update automatically in real-time as you add or remove 'Yes' from the specified column.
Work Smarter with WPS Spreadsheet

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. 1. Open your spreadsheet: Launch WPS Spreadsheet and open the file where you need to track your dynamic totals.
  2. 2. Input your base data: Enter your starting total in a dedicated cell (like A1) and prepare a column for your 'Yes' checks.
  3. 3. Enter the formula: Select the result cell, type `=A1-COUNTIF(C2:C100,"Yes")` (adjusting references as needed), and press Enter to apply.
Fully compatible with Microsoft Excel formulas, including COUNTIF and COUNTIFS.Lightweight application that processes complex calculations and large datasets quickly.Free to use with a familiar tabbed interface for seamless migration.
microsoft office alternative - wps office

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)`.