repeat a sequence of numbers in excel code example Example: repeat number sequence in excel =MOD(A1,4)+1