It sounds like you're asking a question suited for Microsoft Access
(database). However, if you truly do want this for a spreadsheet, then add
Data Validation to the cell(s), specifying "Whole number" for the allowed
type, and 999999999 for the maximum.