Here is a solution with a recursive formula.
The recursive formula generates an absolutely random schedule that meets all your requirements.
The person who is assigned 3 times is also random.
Please add to the namemanager: genplan:
=LAMBDA(LET(
t,DROP(REDUCE("",DEC2BIN(SEQUENCE(2^7,,0),7),LAMBDA(i,c,VSTACK(i,--MID(c,SEQUENCE(,7),1)))),1),
x,CHOOSEROWS(FILTER(t,3=BYROW(t,LAMBDA(r,SUM(r)))),TAKE(SORTBY(SEQUENCE(,COMBIN(7,3)) ,RANDARRAY(,COMBIN(7,3))),,5)),
IF(MIN(BYCOL(x,LAMBDA(c,SUM(c))))=2,IF(x,"x","" ),genplan())))
and delete all expected results and try
Formula:
=genplan()
Bookmarks