Using COUNTIFS to count blank when cell has a formula

前端 未结 1 461
忘了有多久
忘了有多久 2020-12-30 12:29

I have criteria where I need to count if a column B is not blank. But I have a formula in Cell B, So if I do a simple

=Countifs(B1:B10,\"<>\")      


        
相关标签:
1条回答
  • 2020-12-30 12:38

    Try this formula

    [edited as per comments]

    To count populated cells but not "" use

    =COUNTIF(B:B,"*?")

    That counts text values, for numbers

    =COUNT(B:B)

    If you have text and numbers combine the two

    =COUNTIF(B:B,"*?")+COUNT(B:B)

    or with SUMPRODUCT - the opposite of my original suggestion

    =SUMPRODUCT((B:B<>"")*(B:B<>0))

    0 讨论(0)
提交回复
热议问题