Malcolm torishi
Board Regular
- Joined
- Apr 26, 2013
- Messages
- 219
Is it possible to ensure a user can only type into a cell two letters say “ks” followed by four numbers . So if a user forgets either the letters or four numbers he will be prompted.
What do you think should happen if the user types in AB3E45 or AB3OCT? Does what you thought actually happen?if your data is in cell A1,
then use data validation > Custom with the following rule;
=AND(LEN(A1)=6,ISTEXT(LEFT(A1,2)),ISNUMBER(VALUE(RIGHT(A1,4))))
then copy down through column A, or adjust as necessary.
=SUMPRODUCT(--(LEFT($D4;2)="ks");--(SUMPRODUCT(--ISNUMBER(--MID($D4;ROW(INDIRECT("3:"&LEN($D4)));1)))=4);--(LEN($D4)=6))