How to Count Populated Cells Across Multiple Columns Using COUNTIFS
Question details
The user wants to count the number of populated (non-blank) cells across multiple columns (e.g., C:F) while applying specific matching conditions to other reference columns (e.g., A and B).

- Product
- Spreadsheets
- Device & OS
- not provided
- Scenario
- Calculating a total count of valid entries across a wide range of data based on specific grouping or filtering criteria located in separate columns.
- Observed behavior
- Because COUNTIFS requires all criteria ranges to have compatible dimensions, evaluating a single column's criteria against multiple target columns simultaneously results in dimension errors. A workaround formula is required.
Ensure your data ranges are consistent in row height (e.g., A2:A1000 and C2:C1000) to avoid #VALUE! errors when calculating.
Add Multiple COUNTIFS Formulas Together
The most straightforward method to avoid range dimension mismatch errors is to use a separate COUNTIFS calculation for each target column and sum their results.
Since the COUNTIFS function requires that all criteria ranges have the same number of rows and columns, you cannot compare a single-column condition directly against a multi-column target range.
By writing one COUNTIFS formula per column and adding them with a plus sign (+), you maintain equal dimensions for each individual calculation.
Click on an empty cell where you want the total count. Type the first COUNTIFS checking your conditions against the first target column. For example: =COUNTIFS($A$2:$A$1000,"Criteria1",$B$2:$B$1000,"<499",$C$2:$C$1000,"*")
Append a plus sign (+) and copy the same formula, changing only the target column letter (e.g., from C to D, then E, then F).
Your final formula should look similar to: =COUNTIFS(A:A,"Cat",C:C,"*") + COUNTIFS(A:A,"Cat",D:D,"*"). Press Enter to calculate the combined total of populated cells.

Use an Array Formula with SUM Product Logic
You can condense the calculation into a single array formula by multiplying boolean arrays. This evaluates all columns in one compact function.
Use LET and PIVOTBY for Advanced Dynamic Grouping
If you are using modern dynamic array features, you can utilize the LET and PIVOTBY functions to group and count data dynamically.
Count Data Efficiently with WPS Spreadsheet
WPS Spreadsheet fully supports advanced mathematical functions, array formulas, and dynamic arrays like COUNTIFS and SUMPRODUCT. You can easily process complex conditional counting across multiple columns with a user-friendly interface.
- 1. Open your dataset: Launch WPS Spreadsheet and open the workbook containing the multiple columns you need to analyze.
- 2. Select the destination cell: Click on the cell where you want the final populated cell count to be displayed.
- 3. Insert the function: Go to the Formulas tab, click 'Insert Function', and search for COUNTIFS, or manually type your combined =COUNTIFS(...) + COUNTIFS(...) formula directly into the formula bar.
- 4. Apply and calculate: Press Enter. WPS Spreadsheet will instantly calculate the formula and display the accurate count across all specified columns.

Frequently Asked Questions
Why does COUNTIFS return a #VALUE! error when selecting multiple columns?
The COUNTIFS function strictly requires that all criteria ranges have the exact same dimensions. If your criteria range is a single column (e.g., A2:A10), but your target counting range spans multiple columns (e.g., C2:F10), the formula will return a #VALUE! error due to the dimension mismatch.
How do I count populated cells that contain numbers instead of text?
When using COUNTIFS, the asterisk wildcard ("*") only counts text values. To count any cell that is not blank (including numbers, dates, and text), use the "<>" operator (meaning 'not equal to blank') as your criteria instead.
Is it possible to count non-blank cells across an entire worksheet?
Yes. If you do not have specific row-by-row conditions to match, you can simply use the COUNTA function (e.g., =COUNTA(C:F)) which counts all non-empty cells in the specified range regardless of their column dimensions.
Are array formulas supported in WPS Spreadsheet?
Yes, WPS Spreadsheet supports array formulas. You can use functions like SUMPRODUCT or array-entered SUM formulas (using Ctrl+Shift+Enter) to calculate complex multi-column conditions without needing to add multiple COUNTIFS together.




