Count Dates with Blank Fees Using COUNTIFS in WPS Spreadsheets
Question details
Count rows that have a payment date in column A and a blank fee in column B.

- Product
- WPS Spreadsheets and Microsoft Excel
- Device & OS
- not provided
- Scenario
- A spreadsheet tracks payment dates in column A and total fees in column B. Rows with a date but no fee need to be counted as unpaid or pending.
- Observed behavior
- The desired result is a count of rows where column A is not blank and the corresponding cell in column B is blank.
Check that payment dates are in column A and fees are in column B. Decide whether a fee of zero should be treated as blank; the formula below counts blank fees, not zero values.
Use COUNTIFS to Count Nonblank Dates and Blank Fees
Use this formula when each payment date and its fee appear on the same row.
In WPS Spreadsheets or Excel, click an empty cell where you want the count to appear.
Type =COUNTIFS(A:A,"<>",B:B,"") and press Enter. The first condition checks for a nonblank cell in column A; the second checks for a blank cell in column B.
Compare the count with a few rows in columns A and B. A row with a date and a blank fee should be included; a row with a fee of 0 should not.

Count Blank Fees in WPS Spreadsheets
Open your payment sheet in WPS Spreadsheets and use COUNTIFS to count rows with a nonblank date and a blank fee.
- 1. Open the spreadsheet: Open WPS Spreadsheets and select your payment workbook.
- 2. Select an empty cell: Click a cell outside the payment data where you want to display the count.
- 3. Enter COUNTIFS: Type =COUNTIFS(A:A,"<>",B:B,"") and press Enter.
- 4. Review the count: Check the result against rows in columns A and B, then save the workbook.

Frequently Asked Questions
Does the formula count fees that are zero?
No. The criterion "" counts blank fees, not numeric zero. Review column B if zeros should also be treated as pending.
Can I use a limited range instead of entire columns?
Yes. For rows 2 through 1000, enter =COUNTIFS(A2:A1000,"<>",B2:B1000,""). Keep the ranges aligned and the same size.
Does the formula verify that column A contains real dates?
No. The "<>" criterion only checks that a cell is not blank, so text in column A can also be counted.
Will this formula work in Microsoft Excel?
Yes. Enter =COUNTIFS(A:A,"<>",B:B,"") in an empty Excel cell to apply the same conditions.




