H Hall Feb 22, 2006 #1 I want to limit a cell's input to a set format 9999-999, where a 9 is a digit. Is this possible?
B Biff Feb 23, 2006 #2 Hi! If I understand what you want, try this: Select the cell(s) you want to validate Goto Data>Validation Allow: Custom Formula: =AND(ISNUMBER(SUBSTITUTE(A1,"-","")+0),A1=TEXT(A1,"0000-000")) Biff
Hi! If I understand what you want, try this: Select the cell(s) you want to validate Goto Data>Validation Allow: Custom Formula: =AND(ISNUMBER(SUBSTITUTE(A1,"-","")+0),A1=TEXT(A1,"0000-000")) Biff
B Biff Feb 23, 2006 #3 Ooops! Caught a bug. =AND(ISNUMBER(SUBSTITUTE(A1,"-","")+0),A1=TEXT(A1,"0000-000")) Click to expand... Change to: =AND(ISNUMBER(SUBSTITUTE(A1,"-","")+0),A1=TEXT(A1,"0000-000"),LEN(A1)=8) Biff
Ooops! Caught a bug. =AND(ISNUMBER(SUBSTITUTE(A1,"-","")+0),A1=TEXT(A1,"0000-000")) Click to expand... Change to: =AND(ISNUMBER(SUBSTITUTE(A1,"-","")+0),A1=TEXT(A1,"0000-000"),LEN(A1)=8) Biff
H Hall Feb 23, 2006 #4 Excellent! Thanks! Biff said: Ooops! Caught a bug. Change to: =AND(ISNUMBER(SUBSTITUTE(A1,"-","")+0),A1=TEXT(A1,"0000-000"),LEN(A1)=8) Biff Click to expand...
Excellent! Thanks! Biff said: Ooops! Caught a bug. Change to: =AND(ISNUMBER(SUBSTITUTE(A1,"-","")+0),A1=TEXT(A1,"0000-000"),LEN(A1)=8) Biff Click to expand...