IF/AND Statement with CountIf

Options
Donni Matthew
Donni Matthew ✭✭✭✭
edited 12/09/19 in Formulas and Functions

I'm trying to create a formula that will look at my "Measurement" column for the text "PBI" at the beginning of this formula:  =IF([Rank/Actual PTR]434 > [Score/Goal PTR]434, "PTR Exceeded", IF([Rank/Actual PTR]434 = [Score/Goal PTR]434, "PTR Met", IF([Rank/Actual PTR]434 < [Score/Goal PTR]434, "PTR Not Met", ""))).

So, I only want the Rank/Actual & Score/Goal fields to result in a value IF the Measurement column contains "PBI".  I'm assuming I need to include a CountIf formula, but don't know where to put it in my existing formula.

Hope that makes sense.  Any help is appreciated.

Comments

  • sean59916
    sean59916 ✭✭✭
    Options

    Hi Donni - 

     

    If i have understood your question correctly, you could use a formula like below (see image):

    =IF(FIND("PBI", Measurement1) <> 0, IF([Rank/Actual PTR]1 > [Score/Goal PTR]1, "PTR Exceeded", IF([Rank/Actual PTR]1 = [Score/Goal PTR]1, "PTR Met", IF([Rank/Actual PTR]1 < [Score/Goal PTR]1, "PTR Not Met", ""))), "")

    This will first look to see if the measurement column contains the phrase "PBI", if so then move onto your existing logic.

    I hope this helps you out?

     

    Sean

     

    2019-05-09_11-51-44.jpg

  • Donni Matthew
    Donni Matthew ✭✭✭✭
    Options

    That did it!  Thank you so much!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!