Question : for mat colum ms excel 2007

how can i set column in ms excel allow only     number (0123456789), / , - another for mat such as abc not allow in this column

Answer : for mat colum ms excel 2007

Put this validation against A1.

=SUMPRODUCT(--ISNA(MATCH(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1),$C$1:$C$12,0)))=0

Key: In C1-C12, or expand to suit, enter the TEXT 0 through 9 in separate cells, then - and /
To enter 1 as TEXT (not the number), use '1  (single quote before)
To enter / you will need to put '/

Adjust A1 to suit, or paste as is, and copy to target cell/range.
Random Solutions  
 
programming4us programming4us