私はまだvbaに慣れていません。
新しい関数を作成しようとしていますが、予期しない出力が得られ続けます。
私のコードは次のとおりです。
Function bonusplanA(a, b, c)
    Dim example As Range
    Set example = Range("a:c")
    Value = Application.WorksheetFunction.CountIf(example, ">=90")
    Value1 = Application.WorksheetFunction.CountIf(example, ">=80")
    If Value = 3 Then
      bonusplanA = "$20,000 bonus"
    Else
      If Value1 = 3 Then
      bonusplanA = "$10,000 bonus"
      Else
        bonusplanA = "NO BONUS"
      End If
    End If
End Function