Good day, how can I implement the repeating number sequence: 1,1,2,2,1,1,2,2,1,1... and etc.
Searched through entire internet but could not find any solution.
Thanks.
Good day, how can I implement the repeating number sequence: 1,1,2,2,1,1,2,2,1,1... and etc.
Searched through entire internet but could not find any solution.
Thanks.
How about in B2 dragged downFormula:
=MOD(INT((ROWS(B$2:B2)-1)/2),2)+1
I just saw Fluff's formula... use it (it is better than what I had posted).
Here is another approach you can consider (but Fluff's formula is still probably better)...
=0+MID("1122",1+MOD(ROWS($1:1)-1,4),1)
Try
=INT((MOD((ROWS($1:1)-1),4))/2)+1
copy down
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
Fluff13, Brief, neat and great! Thank you.
I composed some ugly formula as well:
Formula:
=IF(AND((MOD(ROWS($A1:A1)-1,4)+1)>0,(MOD(ROWS($A1:A1)-1,4)+1)<3),1,2)
JohnTopley, Rick Rothstein. Great as well! Thank you!
Last edited by T.I.; 10-04-2021 at 03:33 PM.
Glad to help & thanks for the feedback.
If you want brief and neat, try it this way. Manually put a 1 in cells A1 and A2, then put this formula in cell A3 and copy it down...
=3-A1
Last edited by Rick Rothstein; 10-04-2021 at 04:12 PM.
I may be missing something, but in what way does what I proposed not work?
It definitely work! But I needed solution in ONE formula without additional manual operations, like this:
Thanks.Manually put a 1 in cells A1 and A2
I guess I am missing the problem. To use the ONE formula, you would have to manually put it in a cell and then copy down. The only difference with my solution is before you manually put the formula in a cell, you simply have to manually enter 1 twice. Once you have done that, no further attention is needed. And the formula I proposed is more efficient as there are no function calls for Excel to have to evaluate. Anyway, you have a solution you are happy with and that is all that matters in the end.
Attaching small example demonstrating the work of complete formula. Hope it will make things clear.
ANS. post#13
cell D2 formula , Drag down and across
HTML Code:
Nice option via OFFSET, thank you!
@Strogg You're Welcome. Glad to help . Thank You for the feedback
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks