Consulting

Results 1 to 3 of 3

Thread: Solved: data validation question

  1. #1
    VBAX Tutor
    Joined
    Feb 2006
    Posts
    295
    Location

    Solved: data validation question

    hi,
    this is not a vba question.

    is there a way to have a cell value to be set for 8 or 11 text length?

    with Data Validation, it only allows a minimum and maximum text length.


    thanks
    zach

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Choose an allow type of Custom and insert a formula of

    =OR(LEN(A1)=8,LEN(A1)=11)

    assuming A1 is the DV cell
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Tutor
    Joined
    Feb 2006
    Posts
    295
    Location
    hi bob,

    nice. thanks for the formula

    zach

Posting Permissions

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