Forum Discussion

kittenmeants's avatar
kittenmeants
Brass Contributor
Jul 14, 2023
Solved

Formula: Another way to count blank/empty cells

I need support in counting the number of empty cells (blanks cells), that do not have data entered, but omitting the title headers. On a (very) small scale this is what our tracking looks like. We need to know each month how many teams hit their goal, did not meet their goal, and how many entries we are missing. 

 

I can't use just a general =COUNTBLANK formula because the headers will get factored into the outcome. Right now we are using =COUNTBLANK and subtracting how many headers we have. The problem we are running into, is we are constantly adding new teams. Reorganizing the workbook is not currently an option. 

 

 

 

  • kittenmeants 

     

    Are the teams such as 2.1 and 3.8 all numbers? If so:

     

    With Team headers in column A and Met Goal in column 😧

     

    =SUM(ISNUMBER(A2:A1000)*(D2:D1000=""))

4 Replies

  • Faisal1775's avatar
    Faisal1775
    Brass Contributor

    kittenmeants 

    In Excel or other spreadsheet software, you can count blank or empty cells using the "COUNTBLANK" function. However, there is another way to achieve the same result using a combination of functions. One common approach is to use the "COUNTIF" function alongside some other functions like "ISBLANK" or "IF."

    Here's the formula using this method:

    excelCopy code
    =COUNTIF(range, "")

    In this formula:

    1. "range" refers to the range of cells you want to count. For example, if you want to count the blank cells in column A from A1 to A10, the range would be "A1:A10."

    2. The empty double quotes "" represent the criteria for the "COUNTIF" function to count blank cellshttps://www.substancelaw.com

    The "COUNTIF" function will count the number of cells within the specified range that match the specified criteria, which, in this case, are the empty cells.

    Keep in mind that this method counts truly blank cells (cells with no value at all) rather than cells that appear blank but may contain formulas that return empty strings or spaces. If you want to count cells that appear blank but may contain empty strings, you might need to adjust the formula accordingly, for example, using the "IF" function to check for empty strings or spaces within the cells.

  • kittenmeants 

     

    Are the teams such as 2.1 and 3.8 all numbers? If so:

     

    With Team headers in column A and Met Goal in column 😧

     

    =SUM(ISNUMBER(A2:A1000)*(D2:D1000=""))

  • LeonPavesic's avatar
    LeonPavesic
    Silver Contributor

    Hello kittenmeants,

    To count the number of empty cells excluding the title headers in your tracking sheet, you can try a combination of the COUNTBLANK and OFFSET functions. You can try with this formula to dynamically count the empty cells, even when new teams are added to the sheet. Here's how you could implement it:

    1. Use the following formula:


    =COUNTBLANK(OFFSET(A2, 1, 0, COUNTA(A:A) - 1, 1))

    - The OFFSET function is used to define the range of cells to count. It starts from cell A2 (excluding the title header) and extends for the number of rows determined by the COUNTA function.

    - COUNTA(A:A) counts the number of non-empty cells in column A, and subtracting 1 ensures that the title header is excluded from the count.

    - COUNTBLANK function calculates the number of empty cells within the specified range.

     

    Please click Mark as Best Response & Like if my post helped you to solve your issue.
    This will help others to find the correct solution easily. It also closes the item.


    If the post was useful in other ways, please consider giving it Like.


    Kindest regards,


    Leon Pavesic

Resources