Count USA Rows with Blank Cells in Excel
Question details
Count rows where column E is USA and the corresponding cell in column S is blank.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A spreadsheet has country values in column E and cells to check for blanks in column S.
- Observed behavior
- The desired result is a count of rows that meet both conditions.
Check that the country values are in column E and the cells to test are in column S. Adjust the row numbers in both ranges to cover the same rows in your worksheet.
Use COUNTIFS to Count USA Rows with Blank Cells
Use COUNTIFS to count rows matching both conditions, including cells in column S that contain a formula returning an empty string.
Click an empty cell where you want the count to appear.
Type =COUNTIFS(E2:E118,"USA",S2:S118,"") in the selected cell.
Press Enter. Change both ranges if your data starts or ends on different rows.
Use SUMPRODUCT to Count Truly Empty Cells
Use SUMPRODUCT with ISBLANK when column S must be genuinely empty, rather than containing a formula that returns an empty string.
Count Matching Rows in WPS Spreadsheets
Open your workbook in WPS Spreadsheets and use COUNTIFS to count USA rows with blank cells in the corresponding column.
- 1. Open the workbook: Open WPS Spreadsheets and choose Open to select your workbook.
- 2. Select a result cell: Click an empty cell where you want to display the count.
- 3. Enter COUNTIFS: Type =COUNTIFS(E2:E118,"USA",S2:S118,"") and press Enter.
- 4. Adjust the ranges: Edit the formula in the formula bar if your data covers different rows, keeping both ranges aligned.

Frequently Asked Questions
Does COUNTIFS count cells with formulas that return an empty string?
Yes. The criterion "" can count cells that appear blank because a formula returns an empty string. Use SUMPRODUCT with ISBLANK if only truly empty cells should count.
How do I count cells that contain USA as part of longer text?
Replace "USA" with "*USA*" in the COUNTIFS formula: =COUNTIFS(E2:E118,"*USA*",S2:S118,"").
Why must the two COUNTIFS ranges cover the same rows?
COUNTIFS compares corresponding cells in equally sized ranges. For example, E2:E118 and S2:S118 both start on row 2 and end on row 118.
Can I use the same formula in WPS Spreadsheets?
Yes. Open the workbook in WPS Spreadsheets, select an empty cell, and enter =COUNTIFS(E2:E118,"USA",S2:S118,"").




