+ Reply to Thread
Results 1 to 4 of 4

Formulas dealing with searching for characters

  1. #1
    Electro7
    Guest

    Formulas dealing with searching for characters

    Hi,
    I have a list of file names including the complete path, and I'm trying
    to see if the list has special characters like %, &, @ etc. I am using
    the find function now but I have to have a new function to check all
    the characters. Is there a way to have just one formula to check to
    see a list like

    C:\WINDOWS\IE4 Error Log.txt
    C:\WINDOWS\KB832854.log

    etc has any of the characters I'm searching for?


    Thanks for your help.


  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    If you just want a TRUE/FALSE answer try

    =COUNT(FIND({"%","&","@"},A1))>0

  3. #3
    Pete_UK
    Guest

    Re: Formulas dealing with searching for characters

    The SUBSTITUTE( ) function allows you to change some text to different
    text, and so could be used, for example, to change "*" to "". A
    composite function could thus be built up of
    SUBSTITUTE(SUBSTITUTE(SUBSTITUTE( etc ))), but you are limited in this
    to the nesting level of 7 so you could not eradicate all the illegal
    characters in one formula.

    A UDF could do it quite easily.

    Hope this helps.

    Pete


  4. #4
    Electro7
    Guest

    Re: Formulas dealing with searching for characters

    daddylonglegs,
    Thanks!
    you showed me how to include multiple items using find. Got my search
    to work correctly now.

    Electro7


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1