Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
data in column B is of 9 or 10 or 11 or 12 digit.
In every case it contains alphabet "P" whereas others are digit. e.g. 10P060509 125P695847 how can i check this through data validation? |
#2
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
HI aditya,
data in column B is of 9 or 10 or 11 or 12 digit. In every case it contains alphabet "P" whereas others are digit. e.g. 10P060509 125P695847 how can i check this through data validation? Use a custom validation formula like; =AND(LEN(B1)8,LEN(B1)<13,ISNUMBER(FIND("P",B1)),N OT(ISERROR(VALUE(IF(LEN(B1)=FIND("P",B1),0,RIGHT(B 1,LEN(B1)-FIND("P",B1))))))) (all on one line) This evaluates as True if the length of the string is between 9 and 12 charachters, and the string contains exactly one 'P' and all other charachters are numeric. Ed Ferrero www.edferrero.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Validation Data using Validation Table cell range..... | Excel Discussion (Misc queries) | |||
Data Validation Update Validation Selection | Excel Worksheet Functions | |||
data validation invalid in dynamic validation list | Excel Discussion (Misc queries) | |||
data validation invalid in dynamic validation list | Excel Worksheet Functions | |||
Data validation with validation lists and combo boxs | Excel Discussion (Misc queries) |