Forum Discussion

LisaSingleton's avatar
LisaSingleton
Copper Contributor
Oct 25, 2024
Solved

SUM formula calculating 1 more than actual

The count  formula below is calculating one more than when i filter on the column.
=SUM(N(TOCOL('All Defects'!I:I,1)<>"Closed")). This count is 174 when the actual count is 173. Any idea of what could be contributing to this?  Thanks

  • Detlef_Lewin's avatar
    Detlef_Lewin
    Oct 25, 2024

    LisaSingleton 

    That's okay if the value in I1 is not "Closed".

     

    =COUNTIFS('All Defects'!I2:I100,"<>Closed",'All Defects'!I2:I100,"<>")
    =SUM(N(TOCOL('All Defects'!I2:I100,1)<>"Closed"))

     

7 Replies

  • Detlef_Lewin's avatar
    Detlef_Lewin
    Silver Contributor

    LisaSingleton 

    How did you calculate the "actual count"?

     

    And why use such a complicated way for counting? Why not a simple COUNTIF()?

     

    • LisaSingleton's avatar
      LisaSingleton
      Copper Contributor
      The actual count was just filtering on the column.

      I needed to count all cells in a column that were not "Closed" and also excluding the counting of any blank cells. The below formula gave me a count of over 1 million when it should have been 178.
      =COUNTIF('All Defects'!I:I,"<>Closed")
      • Detlef_Lewin's avatar
        Detlef_Lewin
        Silver Contributor

        LisaSingleton 

        I::I includes the column header in I1.

         

        =COUNTIFS('All Defects'!I:I,"<>Closed",'All Defects'!I:I,"<>")

Resources