How to Create Excel Formulas for Counting Tasks in Dynamic Ranges
Question details
The user needs formulas to calculate "Complete Tasks" and "Percent Complete" that will update automatically when dynamic ranges in an Excel task list change or expand.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Setting up a dynamically updating project or task tracker where summary formulas adjust automatically as new tasks are added to the list.
- Observed behavior
- Dynamic ranges must be correctly defined and structured, often requiring structured sample data to map the source metrics to the destination dashboard accurately.
Ensure your task list has a dedicated column with consistent criteria for what constitutes a completed task (such as a specific text status like 'Done' or 'Complete') before writing your formulas.
Use Excel Tables to Create Dynamic Ranges
Converting your data range to an official Excel Table is the most reliable way to ensure your formulas update automatically when new tasks are added.
Excel Tables automatically expand to include new rows. Any formulas pointing to a Table column will dynamically recalculate without needing complex OFFSET functions.
Select your entire task list data range and press Ctrl + T (or go to Insert > Table) to format it as an official Table. Ensure 'My table has headers' is checked.
Assuming your completion column is named 'Status', use the COUNTIF function in your summary dashboard: =COUNTIF(Table1[Status], "Complete").
Divide the completed tasks by the total number of tasks using the COUNTA function: =COUNTIF(Table1[Status], "Complete") / COUNTA(Table1[Task Name]). Format the result as a percentage.
Prepare Sample Data for Complex Mappings
If you are using complex array formulas or dynamic arrays, it is best practice to build a sample mapping file to test expected results.
Define Dynamic Named Ranges Using OFFSET
If you cannot format your data as a Table, you can define a dynamic named range using the OFFSET and COUNTA functions.
Easily Manage Dynamic Task Lists in WPS Spreadsheet
WPS Spreadsheet natively handles dynamic ranges, Tables, and complex formula calculations perfectly. You can easily build automated project dashboards with full compatibility for standard Excel formulas.
- 1. Open your file in WPS: Launch WPS Spreadsheet and open your existing task list workbook.
- 2. Apply Table Formatting: Select your data range, navigate to the Home tab, and choose 'Format as Table'.
- 3. Insert Summary Formulas: In your dashboard area, enter your =COUNTIF([Status], "Complete") formula.
- 4. Add New Tasks: Simply type a new task at the bottom of your list; WPS Spreadsheet will auto-expand the table and update your metrics instantly.

Frequently Asked Questions
Why isn't my COUNTIF formula updating when I add new tasks to the list?
If your formula references a static range (such as $A$2:$A$20), it will not include new rows added below row 20. To fix this, you should either convert your data to a Table so the range expands automatically, or change your formula to reference the entire column (e.g., A:A).
How do I calculate the percent complete if some tasks in the list are left blank?
You should use the COUNTA function to count only the non-blank cells as your denominator. For example, use =COUNTIF(StatusRange, "Complete") / COUNTA(TaskNameRange) so empty rows do not artificially deflate your completion percentage.
Can I use dynamic arrays to filter complete tasks?
Yes. If your spreadsheet software supports dynamic arrays, you can use the FILTER function (e.g., =FILTER(A2:B100, B2:B100="Complete")) to automatically extract a list of completed tasks to a new location. This list will update dynamically as task statuses change.




