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