• Logic test fails?

    Author
    Topic
    #467296

    A1 contains something like
    DEPOSITPOINT 501373
    A2 contains the formula
    =A1=”*501???”
    It returns the value FALSE
    I think that A1 does contain the specified string, so the result should be TRUE.
    What’s wrong?
    JRR

    Viewing 1 reply thread
    Author
    Replies
    • #1212825

      It fails since you are testing whether A1 is literally the string “*501???” which it is not.

      You can use (depending on what you want:

      =ISNUMBER(SEARCH(“501”, A1))
      to see if it contains ANY “501” though could be at end of string or even:

      =COUNTIF(A1,”=*501???”)>0

      Steve

    • #1212827

      You’re a star, Steve.
      If you do a custom filter, the criteria handle wildcards: but not, it seems, the formula.
      Not in the same way, anyway.
      Thanks again
      JRR

    Viewing 1 reply thread
    Reply To: Logic test fails?

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: