Count rows with not empty value

后端 未结 13 2426
梦毁少年i
梦毁少年i 2020-12-13 08:04

In a Google Spreadsheet: How can I count the rows of a given area that have a value? All hints about this I found up to now lead to formulas that do count the rows which hav

13条回答
  •  天涯浪人
    2020-12-13 08:23

    In Google Sheets, to count the number of rows which contain at least one non-empty cell within a two-dimensional range:

    =ARRAYFORMULA(
      SUM(
        N(
          MMULT(
            N(A1:C5<>""),
            TRANSPOSE(COLUMN(A1:C5)^0)
          )
          >0
        )
      )
    )
    

    Where A1:C5 is the range you're checking for non-empty rows.

    The formula comes from, and is explained in the following article from EXCELXOR - https://excelxor.com/2015/03/30/counting-rows-where-at-least-one-condition-is-met/

提交回复
热议问题