I have to restrict some invalid data in a Excel Column.
Below is Validation Criteria:
- Should be a numeric Number
- Size/Length should be equals to 9
Ex : valid:602005514, invalid:were,43456 etc.
I have created a Custom Data Validation using below function.
=AND(LEN(INDIRECT(SUBSTITUTE(ADDRESS(ROW(),COLUMN()),"$","")))=9,
ISNUMBER(INDIRECT(SUBSTITUTE(ADDRESS(ROW(),COLUMN()),"$",""))))
//here i have to get cell name dynamically. so, i have used ADDRESS function
But its not working as expected. It is not allowing any value in cell. I guess it might be because of LEN function circular reference.
I have tried many ways, but not able to solve it. Please help me to solve this.