Excel data validation by combining multiple conditions -
can excel validation formulas multiple conditions? have 1 column want 1) unique values 2) values have 10 characters(leading zeroes allowed) 3) have numbers
i can unique values below formula:
=countif($g:$g,g2)=1
how add other 2 conditions?
if set type number, leading zeroes not displayed.
formula =and(countif(g:g,g2)=1,len(g2)=10,isnumber(value(g2)))
countif(g:g,g2)=1
checks unique condition.len(g2)=10
checks length, including leading zeros i.e., number stored in text format.isnumber(value(g2))
checks value of cell.
and
condition ensures above met.
Comments
Post a Comment