3

I made the following Google script to check whether a string is less than some length:

function isLengthLessThan(length, text) {
  return (text.length < length)
};

How can I set up data validation using this custom formula to check the length of cells? What can I put where the question mark is so that it will represent the value of the cell?

custom formula data validation screen

4

Please try:

=len(A1)>9  

applied to a range starting with A1.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.