Validating a column with another sheet's particular column values in Microsoft Excel -
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
Post a Comment