Forum Discussion

Luiz Henrique Almeida's avatar
Luiz Henrique Almeida
Copper Contributor
Jul 12, 2018

COUNTIF and formulas

So I'm managing an eSport team and I'd like to use the COUNTIF formula to know how many of our players reached a set goal every day. However, each day, the goal varies, because the HP of the enemies varies. Because of that, I have a simple "=B33*0.033" formula, where "B33" is the column where I'll add the enemy Max HP, and "0.033" being 3.3% of the enemy's HP, the goal for everyone to reach a higher tier of reward.

 

I want to know exactly how many of our players reached the goal, but when I put "B34" in the formula (B2:B30;">B34"), the result comes back as 0, meaning I have to manually edit every single line with the right number, a minor hassle, but something that takes up my time nonetheless. Is there any way to optimize what I want to do, or do I have to keep adding the number instead of the cell?

 

Thanks.

  • Damien_Rosario's avatar
    Damien_Rosario
    Jul 16, 2018

    Hi Luiz

     

    Thanks for the file. I see what you are doing.

     

    Try this variation of the formula:

     

    =COUNTIF(B2:B30,">"&B34) 

     

    That should fix your problem.

     

    Cheers

    Damien

  • Damien_Rosario's avatar
    Damien_Rosario
    Silver Contributor

    Hi Luiz Henrique Almeida

     

    Could you please upload a sample spreadsheet for us to see?

     

    I know where you are going with this, but if you can provide a sample, we can tweak the spreadsheet and explain the solution.

     

    Cheers

    Damien

      • Damien_Rosario's avatar
        Damien_Rosario
        Silver Contributor

        Hi Luiz

         

        Thanks for the file. I see what you are doing.

         

        Try this variation of the formula:

         

        =COUNTIF(B2:B30,">"&B34) 

         

        That should fix your problem.

         

        Cheers

        Damien

Resources