Assign a block of numbers to an Account and lookup a number

Each Account has one or more blocks of registration numbers assigned to them, for example 22010-22050 & 22300-22360
Any way to set up a field such that if unit # 22015 comes in, we can tie it to that account?
Right now, we lookup 2201 and hope for the best.