Consulting

Results 1 to 3 of 3

Thread: Solved: Search within a string

  1. #1

    Solved: Search within a string

    Hi all,

    Not sure how to search for some text values within a string if the values can be random thruout the string. I know you can use mid, right , left to strip out characters but I think for what I need vba may be the only way.

    Ex.

    In cell A4 the value is 57HT456

    If the characters HT are present anywhere in the value in that order I would like to return a value to cell B4 of "yes". If it does not then "no".

    I want to do that same check in cells A4 thru A100. The return values of "yes" or "no" will be placed in B4 thru B100.

    Any help would be great.

    thanks ahead of time

  2. #2
    VBAX Expert Tinbendr's Avatar
    Joined
    Jun 2005
    Location
    North Central Mississippi (The Pines)
    Posts
    993
    Location
    =IF(ISERROR(FIND("HT",A4)), "NO", "YES")

  3. #3

Posting Permissions

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