Validating a column with another sheet's particular column values in Microsoft Excel -


enter image description here

enter image description here

i have 2 excel sheets students , studentcourse in workbook. in first sheet i.e. students need validate student id unique , length of student id between 1 , 20 characters. used custom data validation , rule

=and(len(a2)<=20, len(a2) > 0, countif($a$2:$a$65536, a2) =1)

which working expected.

now in second sheet i.e. studentcourse, need validate insert student ids present in students sheet's student id column , student ids can repeated. put custom validation

=and(len(a2) <= 20, len(a2) > 0, countif(students!a2:a65536, a2) > 0)

but unable validate expected.

could please me expected validation?

your reference in formula students! worksheet set relative. please use absolute reference stated below. please confirm if resolves issue.

=and(len(a2) <= 20, len(a2) > 0, countif(students!$a$2:$a$65536, a2) > 0)


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -