← All exercises

COUNT / COUNTA / COUNTBLANK — Attendance list

COUNT / COUNTA / COUNTBLANK — Attendance list

Diagnose a messy attendance list (mixed Yes/No, 1/0 and blanks) with COUNT, COUNTA, COUNTBLANK and ISTEXT, then fix the inconsistent entries — 8 guided steps.

=COUNT( range )

1 / 8

How many cells in the Present column contain a numeric value?

=COUNTA( range )

2 / 8

How many cells in the Present column are filled in (not empty)?

=COUNTBLANK( range )

3 / 8

How many people were not checked in at all?

= COUNTA(...) - COUNT(...)

4 / 8

How many cells contain text instead of a number? (hint: COUNTA counts everything, COUNT only numbers)

=ISTEXT( cell )

5 / 8

The Present column mixes numbers and text. In D2, test whether C2 contains text with the ISTEXT function.

6 / 8

Fill the formula from D2 down for every person. Notice the TRUE/FALSE alternation.

=IF( ISTEXT(...) , IF( ... ) , value )

7 / 8

Write a formula that fixes C2: if it is the text "Yes" → return 1, if it is the text "No" → return 0, otherwise keep the value as is.

=IFS( cond1 , result1 , cond2 , result2 , TRUE , default )

8 / 8

Same exercise, but this time with IFS: write a single formula that handles the 3 cases — "Yes" → 1, "No" → 0, otherwise the original value.

Your score is

0%