How to Automatically Mark a Task Completed in Excel using IF Formula
Question details
The user wants to automate task status updates, automatically changing an overall status to "Completed" when all required individual cells within specific ranges contain the word "Completed".

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking project or task completions using conditional logic across multiple required fields to avoid manual status updates.
- Observed behavior
- A formula is needed to dynamically check multiple ranges and return a specific text string. The user also needs to know how to resolve conflicts between data validation lists and formulas in the same cell.
Ensure that the cell you intend to use for the overall status output does not currently have data validation rules applied, as a cell cannot contain both a formula and a data validation drop-down list.
Use the IF and COUNTIFS Functions to Automate Task Status
Combine the IF function with COUNTIFS to check if all required cells meet the "Completed" criteria before changing the final status.
To check multiple ranges at once, you can count the number of cells that contain "Completed" and compare that to the total number of rows. If the counts match, it means every required cell is completed.
Click on the main status cell (e.g., D3) where you want the overall "Completed" or "Ongoing" status to display.
Type the formula: =IF(COUNTIFS(D5:D11,"Completed",F5:F11,"Completed",H5:H11,"Completed")=ROWS(D5:D11),"Completed","Ongoing"). Adjust the cell ranges (D5:D11, F5:F11, H5:H11) to match your specific tracking columns.
Press Enter to apply the formula. Type "Completed" into all the corresponding cells in your specified ranges to verify that the main status cell automatically changes from "Ongoing" to "Completed".

Automate Task Tracking Easily with WPS Spreadsheet
WPS Spreadsheet fully supports advanced logical functions like IF and COUNTIFS, allowing you to build automated project trackers easily. It is highly compatible with Excel formats and provides a smooth formula experience.
- 1. Open your tracker in WPS Spreadsheet: Launch WPS Spreadsheet and open your existing project tracking document.
- 2. Select the target status cell: Click on the cell where you want the automated status to be shown.
- 3. Input the IF and COUNTIFS formula: Type your logical formula directly into the formula bar, utilizing the smart auto-complete features.
- 4. Press Enter to automate: Hit Enter and watch your project tracker update automatically in real-time as tasks are completed.

Frequently Asked Questions
Why is my formula returning 'Ongoing' even though all cells are completed?
Check for trailing spaces or hidden characters in your input cells. The COUNTIFS formula looks for the exact string "Completed". Applying data validation drop-down lists to your input cells ensures exact matches and prevents typos.
Can I use this formula with different status words like 'Done' or 'Pending'?
Yes, you can easily replace the text strings in the formula. For example, change "Completed" to "Done" and "Ongoing" to "Pending" to match your specific workflow: =IF(COUNTIFS(D5:D11,"Done")=ROWS(D5:D11),"Done","Pending").
How do I modify the formula if my ranges have different row sizes?
If your columns span different numbers of rows, you cannot use a single ROWS() reference for the check. Instead, you must manually add the expected total number of cells or use separate COUNTIFS blocks added together to match the exact target number.




