Forum Discussion

RangerLG's avatar
RangerLG
Copper Contributor
Jul 26, 2026
Solved

Nesting a COUNTIF With IF To Evaluate A Formula

I have a sheet called Employee Training Matrix that I use to lookup data in a tab called Documents to see if there has been a date entered into a range of cells.  Depending on how many dates are ente...
  • Olufemi7's avatar
    Jul 28, 2026

    Hello RangerLG​,

    If the goal is to leave the result blank when no training is required, you don't need to combine COUNTIF with your existing formula. Wrap your calculation in an IF statement that checks whether the training is required.

    For example, if Documents!B3 contains "Required":

    =IF(Documents!B3<>"Required","",COUNTA(Documents!C3:C5)/3)

    If the training is required, the formula returns the completion percentage. If it isn't required, it returns a blank.

    If you don't already have a field that indicates whether training is required, how does your workbook identify employees who don't need that training? That will determine what condition to use in the IF statement.