Count Rows Where Multiple Excel Columns Are Not Blank
Question details
Count rows based on whether columns L, O, and R contain values, or count the individual nonblank cells in those columns.

- 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.
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.
Count rows where all three columns are nonblank
Use COUNTIFS when a row should count only if L, O, and R all contain values.
In Excel, click an empty cell where you want the row count to appear.
Type =COUNTIFS(L2:L100,"<>",O2:O100,"<>",R2:R100,"<>") and press Enter.
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 at least one column is nonblank
Use SUMPRODUCT when each row should be counted once if any of the three columns contains a value.
Count individual nonblank cells across the three columns
Add separate COUNTIFS results when you need a cell count rather than a row count.
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. Open the workbook: Launch WPS Spreadsheet and use Open to select your Excel workbook.
- 2. Select an empty cell: Click the cell where you want to display the count.
- 3. Enter the formula: Type =COUNTIFS(L2:L100,"<>",O2:O100,"<>",R2:R100,"<>") and press Enter.
- 4. Adjust and save: Change the row boundaries in the formula bar to match your data, then select Save.

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.




