Function Problems

Count Rows Where Multiple Excel Columns Are Not Blank

Nimra MalikNimra Malik Nov 18, 2026 870 views

Question details

Count rows based on whether columns L, O, and R contain values, or count the individual nonblank cells in those columns.

Count Rows Where Multiple Excel Columns Are Not Blank
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet has data in columns L, O, and R, and the user needs a count based on populated cells.
Observed behavior
The desired count depends on whether all three cells must be populated, at least one cell must be populated, or each populated cell should be counted separately.
Before you start

Identify the first and last data rows, excluding headers if they should not be counted. Use matching row boundaries for columns L, O, and R in each formula.

Solution 1Recommended

Count rows where all three columns are nonblank

Use COUNTIFS when a row should count only if L, O, and R all contain values.

1
Select an output cell

In Excel, click an empty cell where you want the row count to appear.

2
Enter the COUNTIFS formula

Type =COUNTIFS(L2:L100,"<>",O2:O100,"<>",R2:R100,"<>") and press Enter.

3
Adjust the ranges

Edit the formula in the formula bar to replace rows 2 through 100 with your actual data rows, using the same boundaries for all three columns.

Count rows where all three columns are nonblank
What counts as a value: Zero is counted as a value, and cells containing spaces are not blank. Excluding headers prevents populated header cells from being counted as a data row.
Count nonblank rows in WPS

Count populated columns with WPS Spreadsheet

Open your workbook in WPS Spreadsheet and use COUNTIFS to count rows where columns L, O, and R all contain values.

  1. 1. Open the workbook: Launch WPS Spreadsheet and use Open to select your Excel workbook.
  2. 2. Select an empty cell: Click the cell where you want to display the count.
  3. 3. Enter the formula: Type =COUNTIFS(L2:L100,"<>",O2:O100,"<>",R2:R100,"<>") and press Enter.
  4. 4. Adjust and save: Change the row boundaries in the formula bar to match your data, then select Save.
Count rows that meet multiple nonblank conditions with COUNTIFS.Open and save Microsoft Excel XLSX and XLS workbooks.Use a familiar spreadsheet interface to edit formulas and review results.Work with spreadsheets using the free version of WPS Office.
microsoft office alternative - wps office

Frequently Asked Questions

Can I count rows if only one of the three columns has a value?

Yes. Enter =SUMPRODUCT(--(((L2:L100<>"")+(O2:O100<>"")+(R2:R100<>""))>0)) in an empty cell. It counts each qualifying row once.

Why does adding three COUNTIFS formulas give a larger count?

Adding the three results counts nonblank cells, not distinct rows. A row with values in all three columns adds three to the total.

Can I use entire columns in the COUNTIFS formula?

Yes. For example, =COUNTIFS(L:L,"<>",O:O,"<>",R:R,"<>") checks entire columns. Bounded ranges can avoid counting headers and are preferable when you know the data boundaries.

Are zeros and spaces treated as nonblank?

Yes. A cell containing zero or spaces is not blank. Check and clean cells containing unwanted spaces before counting if they should be treated as empty.