Forum Discussion

Picab73's avatar
Picab73
Copper Contributor
Jun 22, 2024
Solved

COUNTIF

Hi,

I am using tge COUNTIF function to count cells in a range with a 'tick' symbol. I would like to show the result as  the cells counted is % of total cells in the range. Could someone please assist with the relevant syntax?

Thankyou 

  • Picab73 

    If the range were named "tick?" and the symbol is a "ü" then

    = COUNTIF(tick?, "ü") / ROWS(tick?)

    provides a percentage given the correct cell format.

  • Picab73 

    If the range were named "tick?" and the symbol is a "ü" then

    = COUNTIF(tick?, "ü") / ROWS(tick?)

    provides a percentage given the correct cell format.

    • Picab73's avatar
      Picab73
      Copper Contributor
      Many thanks Peter, this worked well! 🙂
      • Picab73 

        To ignore which exact character is used for ticks, it could be

        =1 - COUNTBLANK(tick?) / ROWS( tick?)

        or

        =ROWS( TOCOL(tick?,1) ) / ROWS( tick? )

        assuming other cells are blank.

Resources