WPS Office

Free All-in-One Office Suite with PDF Editor

correct-icon

Edit Word, Excel, and PPT for FREE.

correct-icon

Read, edit, and convert PDFs with the powerful PDF toolkit.

correct-icon

Microsoft-like interface, easy to use.

Free download

Windows • MacOS • Linux • iOS • Android

banner

The COUNTA function in excel

November 4, 2021
5.5K Views

In WPS Spreadsheet, the COUNTA function can help us count the amount of cells left non-empty.

· The COUNTA function:

=COUNTA(value1, [value2], ...)

· Use the COUNTA function for total attendance:

In the following example, we use the COUNTA function to calculate total attendance.

1. Enter the formula =COUNTA(C5:C11)

2. Press Enter to get the result.

As we can see, since 4 cells in total are filled with '', the result is '4',with the empty cells skipped.

Use the COUNTA function for total attendance

· Other practices with the COUNTA function:

The COUNTA function count the non-empty cells amount, no matter the cell is filled with text, figures, data and time, a space( ), #VALUE! error, etc.

In the following example, Enter the formula =COUNTA(B3:B7). Then, the result will be '5'.The COUNTA function in excel (2).png

If you want to count the cells that fulfill a certain or multiple conditions, please use the COUNTIF function or the COUNTIFS function.

To be office excel advanced, you could learn how to use WPS Office Spreadsheet online in WPS Academy.

15 years of office industry experience, tech lover and copywriter. Follow me for product reviews, comparisons, and recommendations for new apps and software.