+ Reply to Thread
Results 1 to 4 of 4

excel data validation for NAME

  1. #1
    Registered User
    Join Date
    07-16-2014
    Location
    kathmandu, nepal
    MS-Off Ver
    2007
    Posts
    15

    excel data validation for NAME

    I am trying to create a data validation rule for NAME attribute. My conditions are::

    1. it should be text and may also contain "." and space.
    2. length of name should be greater than 5 but less than 85 characters
    3. the cell should not be blank


    I have created a validation rule, but when I insert text of length greater 5 say 6 or 10 its showing error. I think my rule is mistake. Please help!
    Please Login or Register  to view this content.
    It is not working as expected.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    4,863

    Re: excel data validation for NAME

    Please try

    =AND(ISTEXT(B2),LEN(B2)>=5,LEN(B2)<=85,ISNUMBER(FIND(".",B2)))

  3. #3
    Registered User
    Join Date
    07-16-2014
    Location
    kathmandu, nepal
    MS-Off Ver
    2007
    Posts
    15

    Re: excel data validation for NAME

    Quote Originally Posted by Bo_Ry View Post

    =AND(ISTEXT(B2),LEN(B2)>=5,LEN(B2)<=85,ISNUMBER(FIND(".",B2)))
    With this formula, I have to enter "." in every entry. But I need "." as optional value i.e. Jone kim and Jonie. kim both should be valid entry. How can I do this? Thank You!!!
    Last edited by jone kim; 03-12-2019 at 05:14 AM. Reason: added

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    4,863

    Re: excel data validation for NAME

    remove the find("."

    =AND(ISTEXT(B2),LEN(B2)>=5,LEN(B2)<=85)

+ 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. Replies: 1
    Last Post: 01-14-2018, 11:04 AM
  2. Multi-select from data validation isn't working with auto-assigning data validation
    By iPenguin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2017, 12:37 PM
  3. Replies: 3
    Last Post: 06-04-2015, 02:27 PM
  4. [SOLVED] Data Validation: How to clear/delete the content of the cell and not Data Validation List?
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2015, 09:42 AM
  5. Data Validation not working,for excel validation Please Help!!!
    By angelmama in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-09-2014, 10:06 AM
  6. Replies: 4
    Last Post: 12-19-2013, 10:44 AM
  7. Using Defined Names with Data Validation Depend and Data Validation Multi Select
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2012, 05:36 PM

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.6.0 RC 1