Count rows with not empty value

后端 未结 13 2432
梦毁少年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:16

    =counta(range) 
    
    • counta: "Returns a count of the number of values in a dataset"

      Note: CountA considers "" to be a value. Only cells that are blank (press delete in a cell to blank it) are not counted.

      Google support: https://support.google.com/docs/answer/3093991

    • countblank: "Returns the number of empty cells in a given range"

      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 formula from

    =counta(range)
    

    to:

    =Counta(range) - Countblank(range)
    

    EDIT: the function is countblank, not countblanks, the latter will give an error.

提交回复
热议问题