Consulting

Results 1 to 2 of 2

Thread: Solved: if it contains an O

  1. #1

    Solved: if it contains an O

    I currently have this formula

                'Call_Activity_Check
                    With Range("Call_Activity_Check")
                    .FormulaR1C1 = _
                         "=IF(Call_Activity_Calc=""O"",""Fail"",IF(Call_Activity_Calc=""OO"",""Fail"",IF(Call_Activity_Calc=""OOO"",""Fail"",IF(Call_Activity_Calc=""OOOO"",""Fail"",IF(Call_Activity_Calc=""OOOOO"",""Fail"",""Pass"")))))"
                    .Locked = True
                    '.Value = .Value
                    .EntireColumn.Hidden = True
                End With
    I want to simplfy it that if Call_Acticity_Calc contains and O then fail, pass. can anyone assist ?

  2. #2

    Thanks

          .FormulaR1C1 = _
                        "=IF(ISNUMBER(SEARCH(""*O*"",Call_Activity_Call)),""Fail"",""Pass"")"
    Ive done it thanks, see above is there a better way ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •