2

Is there a formula I can use that will print the letter R after every four cells?

For example,

A1  B1  C1  D1  E1  F1  G1  H1  I1  J1  K1  L1
-   -   -   -    R  R   -   -   -   -   R   R

3 Answers 3

3

Since the other two answers do not fully address the OP's whole question (based on title, text and example) of inserting the letter R twice after 4 blank cells, I am providing this solution.

Start in cell E1 with the formula and drag over. enter image description here

2

Assuming you want your pattern to begin in column A:

=REPT("R",NOT(MOD(COLUMNS($A:A),6))+NOT(MOD(COLUMNS($A:A)+1,6)))

If you wish the pattern to begin in another column, replace the references to 'A' with that column.

4
  • This works, thanks. What if I want to change it so that R would be repeated every 6 cells? How will the formula change?
    – meris89
    Oct 16, 2015 at 18:15
  • To clarify... do you mean five blank cells between double R's ?
    – Excel Hero
    Oct 16, 2015 at 18:17
  • If so, like this: =REPT("R",NOT(MOD(COLUMNS($A:A),7))+NOT(MOD(COLUMNS($A:A)+1,7)))
    – Excel Hero
    Oct 16, 2015 at 18:18
  • my solution works, too, but this is pretty darn sweet! Oct 16, 2015 at 18:38
0

=REPT("R",OR(MOD(COLUMNS($A:A),6)={0,5}))

Regards

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.