Counts the number of empty cells in a specified range of cells.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
COUNTBLANK(range)The COUNTBLANK function identifies cells that contain no data, including cells that appear empty but contain formulas returning an empty string. It is commonly used to audit datasets for missing values or incomplete entries.
=COUNTBLANK(A1:A5)ผลลัพธ์: 2
If cells A1, A3, and A5 contain data, and A2 and A4 are empty, the result is 2.
No, cells containing a space are considered non-blank and are not counted.