+ Reply to Thread
Results 1 to 4 of 4

Uploads can only contain characters A-Z and 0-9 as well as these special ones !&()-.<=>_

  1. #1
    Registered User
    Join Date
    11-13-2013
    Location
    SF
    MS-Off Ver
    Excel 2010
    Posts
    6

    Uploads can only contain characters A-Z and 0-9 as well as these special ones !&()-.<=>_

    How can I build a formula (or a macro) to verify the contents of a column (A:A) of text contains only these allowable characters?

    Thanks!

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Uploads can only contain characters A-Z and 0-9 as well as these special ones !&()-.<=

    Here is a function that returns TRUE if the string is valid or false if it has an invalid character. The trick that I had to look up was that the hyphen (minus sign) had to be at the end or beginning of the pattern so as not to be confused with defining a range.

    Please Login or Register  to view this content.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    11-13-2013
    Location
    SF
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Uploads can only contain characters A-Z and 0-9 as well as these special ones !&()-.<=

    Works like a charm thank you!! Crazy about the dash needing to be at the end too!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Uploads can only contain characters A-Z and 0-9 as well as these special ones !&()-.<=

    Another way:

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Special Characters
    By sathishkm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-29-2016, 03:18 PM
  2. UTF - 8 Special CHaracters HELP!!
    By joaobmx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2014, 03:54 PM
  3. Macro to replace European characters with non "special" English characters?
    By johanna0507 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2012, 09:13 AM
  4. Please enable PNG uploads
    By Uncle.Bungle in forum The Water Cooler
    Replies: 12
    Last Post: 10-05-2010, 11:28 AM
  5. special characters (little box)
    By YuChieh in forum Excel General
    Replies: 9
    Last Post: 06-14-2005, 09:05 AM
  6. [SOLVED] Cleansing for CRM uploads
    By Daniel Dimmock in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-14-2005, 07:06 AM

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