+ Reply to Thread
Results 1 to 5 of 5

Thread: validation of a cell with specific character at a specific position

  1. #1
    Registered User
    Join Date
    09-05-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    3

    Smile validation of a cell with specific character at a specific position

    I have a table containing data in two columns. one column contains data in each cell and each cell contains say 10 character long string e.g. AAPD2222A. I want to check that the string in each cell ends with an alpha. please suggest a way out.
    Last edited by xlusr; 09-06-2011 at 10:35 AM.

  2. #2
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,590

    Re: validation of a cell with specific character at a specific position

    Try this
    =ISERROR(RIGHT(A2,1)*1)
    This will return FALSE if it is a number TRUE if an alpha character.
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  3. #3
    Registered User
    Join Date
    09-05-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: validation of a cell with specific character at a specific position

    Thanks for the reply.
    But, there are some data which ends with special characters like *, ., # etc. If we use your formula for such data it returns FALSE. I want to find out all such cells where the data is ending other than numerical or special characters.
    Please advise.

  4. #4
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,590

    Re: validation of a cell with specific character at a specific position

    Try this
    =AND(CODE(UPPER(RIGHT(A2,1)))>=65,CODE(UPPER(RIGHT(A2,1)))<=90)
    This will return TRUE if the last character is a>z or A>Z
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  5. #5
    Registered User
    Join Date
    09-05-2011
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: validation of a cell with specific character at a specific position

    Thank you so much, Marcol. My prob resolved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0