Function Problems

Count USA Rows with Blank Cells in Excel

Amos GikundaAmos Gikunda Nov 22, 2026 870 views

Question details

Count rows where column E is USA and the corresponding cell in column S is blank.

Count USA Rows with Blank Cells in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select a result cell

Click an empty cell where you want the count to appear.

2
Enter the formula

Type =COUNTIFS(E2:E118,"USA",S2:S118,"") in the selected cell.

3
Calculate the count

Press Enter. Change both ranges if your data starts or ends on different rows.

Match text containing USA: The criterion "USA" matches the whole cell value. To match text containing USA, use "*USA*" instead.
WPS Spreadsheets

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. 1. Open the workbook: Open WPS Spreadsheets and choose Open to select your workbook.
  2. 2. Select a result cell: Click an empty cell where you want to display the count.
  3. 3. Enter COUNTIFS: Type =COUNTIFS(E2:E118,"USA",S2:S118,"") and press Enter.
  4. 4. Adjust the ranges: Edit the formula in the formula bar if your data covers different rows, keeping both ranges aligned.
Count rows that meet country and blank-cell conditions in one formula.Open and edit Microsoft Excel XLSX and XLS files.Use a familiar spreadsheet interface to work with existing data.
microsoft office alternative - wps office

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