+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Return 'TRUE' for cells that contain a letter?

  1. #1
    Forum Contributor
    Join Date
    04-14-2008
    Location
    Fort Collins, Co
    MS-Off Ver
    2016
    Posts
    107

    Return 'TRUE' for cells that contain a letter?

    I have a spreadsheet that has codes in it. I have to separate the codes that contain a letter from the codes that do not. I'd like to use a simple function that will give me a 'TRUE' value for the codes that have letters in them.

    Examples of the codes I have in my worksheet:

    1234-AB would return TRUE
    1394-38 would return FALSE
    289-MX-399-4 would return TRUE
    3-493-4949 would return FALSE

    Any help appreciated! I'd like to do it without having to specify each letter I'm looking for, but if that's the only way I can do it, that is fine too.

    Thank you!
    Last edited by NBVC; 06-07-2010 at 03:30 PM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Return 'TRUE' for cells that contain a letter?

    With
    A1: containing a string that may contain letters (A-Z)

    This formula returns TRUE if any of the A1 characters is a letter...otherwise: FALSE
    Please Login or Register  to view this content.
    Does that help?
    Last edited by Ron Coderre; 06-07-2010 at 01:46 PM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Return 'TRUE' for cells that contain a letter?

    This might also do the job...

    =IF(A1="","",ISERR(SUBSTITUTE(A1,"-","")+0))

    copied down.

    where A1 contains first string to test.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Contributor
    Join Date
    04-14-2008
    Location
    Fort Collins, Co
    MS-Off Ver
    2016
    Posts
    107

    Re: <SOLVED> Return 'TRUE' for cells that contain a letter?

    Thank you so much. The first formula worked great, so I did not try the other one. Love this forum! thanks again!

+ 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