I just used =COUNTIF(Range, "<>") and it counted non-empty cells for me.

Answer from Mike on Stack Overflow
🌐
Google Support
support.google.com › docs › thread › 113555601 › how-to-get-countifs-to-match-on-a-blank-cell
How to get COUNTIFS to match on a blank cell? - Google Docs Editors Community
June 14, 2021 - Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on
Discussions

google sheets - Count rows with not empty value - Stack Overflow
Note: CountBlank considers both blank cells (press delete to blank a cell) and cells that have a formula that returns "" to be empty cells. Google Support: https://support.google.com/docs/answer/3093403 · If you have a range that includes formulae that result in "", then you can modify your ... More on stackoverflow.com
🌐 stackoverflow.com
Countifs cell not blank
If it’s a true blank “<>” for the criteria. Won’t work if it contains an empty string. For the opposite, “” for the criteria. Will match blanks and empty strings. If you need to exclude blanks and empty strings you can do something like this: arrayformula(D1:D10<>””), true Or index() for short. So: =COUNTIFS(A1:A10;1;B1:B10;$C$1; index(D1:D10<>””); true) This converts your D1:D10 range to an array of true/false values which you then count if true More on reddit.com
🌐 r/googlesheets
7
2
May 10, 2025
Formula to Count Non-Blank Cells - Google Docs Editors Community
Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on More on support.google.com
🌐 support.google.com
December 5, 2022
How to make =COUNTIF work with numbers and not just words
Would help if you shared your full formula. A common issue is numbers being stored as text so you might need to put parentheses around the number in the formula. It's perfectly possible to use numbers inside a COUNTIF, I do it regularly. More on reddit.com
🌐 r/googlesheets
19
1
December 16, 2022
🌐
Reddit
reddit.com › r/sheets › count is counting blank results?
r/sheets on Reddit: COUNT is counting blank results?
July 22, 2024 -

Guys! Today I noticed something supper odd. And now I wander was it always like this? Here's the issue/bug: in both Excel and GSheets the COUNT(range) and COUNTIF(range, "<>") formulas are counting the cells even if they have formula that outputs "" Blank results! WHATA HACK IS EVEN THAT?! Furthermore, at the bottom right corner when i selected a range with 10 blanks results and 10 non-blank results, the COUNT is also showing 20!

🌐
W3Schools
w3schools.com › googlesheets › google_sheets_countblank.php
Google Sheets COUNTBLANK Function
AND AVERAGE AVERAGEIF AVERAGEIFS ... STDEV.S SUM SUMIF SUMIFS VLOOKUP XOR ... The COUNTBLANK function is a premade function in Google Sheets, which counts blank cells in a range....
🌐
Simular
simular.ai › workflow › how-to-count-non-empty-cells-in-google-sheets-fast
How to Count Non-Empty Cells in Google Sheets (COUNTA Guide)
1 month ago - Quick answer: To count non-empty cells in Google Sheets, use =COUNTA(range), which counts every cell that is not blank. To count by condition use COUNTIF, and to ignore cells that only look empty (formulas returning "") use SUMPRODUCT.
🌐
Sheetai
sheetai.app › blog › google-sheets-count-if-not-blank
Google Sheets Count if not blank
May 13, 2025 - This counts all the non-blank cells in the range A1 to A10. The "<>" condition means “not equal to blank”. Once you hit Enter, Google Sheets will calculate and display the number of non-empty cells in that range.
Find elsewhere
🌐
Sheetgo
sheetgo.com › home › how to use countifs in google sheets
How to use COUNTIFS in Google Sheets - Sheetgo
December 17, 2025 - To count cells that aren’t blank, just include the not equal to operator between quotations. =COUNTIFS(C:C, “John”, D:D, “New*”, E:E, “<>”) You can even input Boolean values (TRUE and FALSE) as conditions.
🌐
LiveFlow
liveflow.com › product-guides › countblank-function-in-google-sheets
COUNTBLANK Function in Google Sheets: Explained | LiveFlow
... Value1: This argument should be a cell, range, or array. ... Value2: If you need to select other ranges, you can add as value2, value3, …. ... The COUNTBLANK function counts the total number of blank cells.
🌐
Rows
rows.com › blog › post › countif-formula-in-google-sheets
How to Use the COUNTIF Google Sheets Function in 2025
August 19, 2024 - Open your Google Sheet and input the formula into a cell. Replacing with your text criterion. Then press enter. ... This counts how many cells in B1:B20 contain a number greater than 100. The result is 3, which is showing slightly above the formula. While the formula for COUNTIF is =COUNTIF(range, "criterion") The process is a little different if you want to count blank cells.
🌐
Reddit
reddit.com › r/googlesheets › countifs cell not blank
r/googlesheets on Reddit: Countifs cell not blank
May 10, 2025 -

Hello, I need to use the function countifs for multiple criteria, including "the cell is not blank". Here is an example. Be aware that I use semicolon to separate formulas, not commas like in the USA.

COUNTIFS(A1:A10;1;B1:B10;$C$1;D1:D10; not blank)

Translated, count all the cells that in the column A are equal to 1, in the column B are equal to C1, and in the column D are not blank. For instance, if A5=1, B5=C1 and D5 is not blank, then count it.

It works perfectly with other criteria, but I cannot find anything about cells not being blank. What line of code should I put?

As a bonus question, what if I revert the last condition, asking for cells that are blank in the D column, instead? What should I put in that case?

🌐
Sheetsformulas
sheetsformulas.com › excel-and-google-sheets-formulas-and-example › count-blank-cell-in-excel-or-google-sheets
SheetsFormulas.com - count blank cell in Excel and Google Sheets
Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets. ... 💡 You can also use multiple ranges "=COUNTBLANK(A2:A6, B2:B6)" in which the number of blanks is counted
🌐
Softr
softr.io › home › blog › 100 google sheets formulas that actually work: a cheat sheet
100 Google Sheets formulas: The complete list
July 23, 2026 - Every common Google Sheets formula explained with syntax and examples, from COUNTIF to XLOOKUP, grouped by category so you can scan straight to the one you need.
🌐
Google Support
support.google.com › docs › thread › 191532096 › formula-to-count-non-blank-cells
Formula to Count Non-Blank Cells - Google Docs Editors Community
December 5, 2022 - Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on
🌐
Superjoin
superjoin.ai › home › blog › how to count cells if not blank in google sheets
How to Count Cells if Not Blank in Google Sheets | Superjoin
August 21, 2024 - You will see a summary of what Superjoin AI Copilot will be doing. If this is what you expect, accept the solution. One of the most straightforward methods to count cells that are not blank is by using the COUNTA function.
🌐
3Pie Analytics
3pieanalytics.com › excel-and-google-sheets-formulas-and-example › count-cells-that-are-not-blank-in-excel-or-google-sheets
count cells that are not blank in Excel and Google Sheets
To count the number of cells that are not blank, you can use =COUNTA(A2:A6) or =COUNTIF(A:A,"<>") formulas. Check the formulas below that suits your need. ... Check below for a detailed explanation with pictures and how to use formulas in Excel ...
🌐
Spreadsheet Point
spreadsheetpoint.com › home › google sheets tips › google sheets countif not blank: 4 easy ways
Google Sheets COUNTIF Not Blank: 4 Easy Ways | SSP
You can use COUNTA and the Google Sheets COUNTIF not blank, or use other functions and features such as SUMPRODUCT and the taskbar’s Count Value. In this tutorial, I will show you, from experience, two really simple formulas to count cells if not blank in Google Sheets.
Published: February 14, 2025
🌐
Coefficient
coefficient.io › home
Counting Non-Empty Cells in Google Sheets: A Quick Guide
February 10, 2024 - One of the easiest ways to count non-empty cells in Google Sheets is by using the COUNTA function. This function counts the number of cells in a range that are not empty. To use the COUNTA function, you need to select the range of cells that ...
🌐
Excel Insider
excelinsider.com › home › our blog › google sheets functions › google sheets countif to count cells not equal to text
Google Sheets COUNTIF to Count Cells Not Equal to Text - Excel Insider
June 26, 2025 - Google Sheets doesn’t support a direct “NOT IN” condition like SQL, but you can use the COUNTIFS function to layer multiple exclusion conditions. ... The formula will return a count of all cells in B2:B11 that are not equal to “Yes” ...
🌐
MakeUseOf
makeuseof.com › home › productivity › how to count non-blank cells in google sheets
How to Count Non-Blank Cells in Google Sheets
August 4, 2022 - In these cases, using COUNTIF instead of COUNTA will provide a more accurate count of the cells that are not blank. COUNTIF is one of the many IF functions inside Google Sheets.