B2: =B$1&MOD(INT((ROW()-ROW($B$2))/N^(COLUMN($I$1)-COLUMN())),N)+1 (copy down and across)
<tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: center"]A1[/TD]
[TD="align: center"]B1[/TD]
[TD="align: center"]C1[/TD]
[TD="align: center"]D1[/TD]
[TD="align: center"]E1[/TD]
[TD="align: center"]F1[/TD]
[TD="align: center"]G1[/TD]
[TD="align: center"]H1[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]2[/TD]
[TD="align: center"]A1[/TD]
[TD="align: center"]B1[/TD]
[TD="align: center"]C1[/TD]
[TD="align: center"]D1[/TD]
[TD="align: center"]E1[/TD]
[TD="align: center"]F1[/TD]
[TD="align: center"]G1[/TD]
[TD="align: center"]H2[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]3[/TD]
[TD="align: center"]A1[/TD]
[TD="align: center"]B1[/TD]
[TD="align: center"]C1[/TD]
[TD="align: center"]D1[/TD]
[TD="align: center"]E1[/TD]
[TD="align: center"]F1[/TD]
[TD="align: center"]G1[/TD]
[TD="align: center"]H3[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]4[/TD]
[TD="align: center"]A1[/TD]
[TD="align: center"]B1[/TD]
[TD="align: center"]C1[/TD]
[TD="align: center"]D1[/TD]
[TD="align: center"]E1[/TD]
[TD="align: center"]F1[/TD]
[TD="align: center"]G1[/TD]
[TD="align: center"]H4[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]5[/TD]
[TD="align: center"]A1[/TD]
[TD="align: center"]B1[/TD]
[TD="align: center"]C1[/TD]
[TD="align: center"]D1[/TD]
[TD="align: center"]E1[/TD]
[TD="align: center"]F1[/TD]
[TD="align: center"]G1[/TD]
[TD="align: center"]H5[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]6[/TD]
[TD="align: center"]A1[/TD]
[TD="align: center"]B1[/TD]
[TD="align: center"]C1[/TD]
[TD="align: center"]D1[/TD]
[TD="align: center"]E1[/TD]
[TD="align: center"]F1[/TD]
[TD="align: center"]G2[/TD]
[TD="align: center"]H1[/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]7[/TD]
[TD="align: center"]A1[/TD]
[TD="align: center"]B1[/TD]
[TD="align: center"]C1[/TD]
[TD="align: center"]D1[/TD]
[TD="align: center"]E1[/TD]
[TD="align: center"]F1[/TD]
[TD="align: center"]G2[/TD]
[TD="align: center"]H2[/TD]
[TD="align: center"]9[/TD]
[TD="align: right"]8[/TD]
[TD="align: center"]A1[/TD]
[TD="align: center"]B1[/TD]
[TD="align: center"]C1[/TD]
[TD="align: center"]D1[/TD]
[TD="align: center"]E1[/TD]
[TD="align: center"]F1[/TD]
[TD="align: center"]G2[/TD]
[TD="align: center"]H3[/TD]
[TD="align: center"]10[/TD]
[TD="align: right"]9[/TD]
[TD="align: center"]A1[/TD]
[TD="align: center"]B1[/TD]
[TD="align: center"]C1[/TD]
[TD="align: center"]D1[/TD]
[TD="align: center"]E1[/TD]
[TD="align: center"]F1[/TD]
[TD="align: center"]G2[/TD]
[TD="align: center"]H4[/TD]
[TD="align: center"]11[/TD]
[TD="align: right"]10[/TD]
[TD="align: center"]A1[/TD]
[TD="align: center"]B1[/TD]
[TD="align: center"]C1[/TD]
[TD="align: center"]D1[/TD]
[TD="align: center"]E1[/TD]
[TD="align: center"]F1[/TD]
[TD="align: center"]G2[/TD]
[TD="align: center"]H5[/TD]
[TD="align: center"]12[/TD]
[TD="align: right"]11[/TD]
[TD="align: center"]A1[/TD]
[TD="align: center"]B1[/TD]
[TD="align: center"]C1[/TD]
[TD="align: center"]D1[/TD]
[TD="align: center"]E1[/TD]
[TD="align: center"]F1[/TD]
[TD="align: center"]G3[/TD]
[TD="align: center"]H1[/TD]
[TD="align: center"]13[/TD]
[TD="align: right"]12[/TD]
[TD="align: center"]A1[/TD]
[TD="align: center"]B1[/TD]
[TD="align: center"]C1[/TD]
[TD="align: center"]D1[/TD]
[TD="align: center"]E1[/TD]
[TD="align: center"]F1[/TD]
[TD="align: center"]G3[/TD]
[TD="align: center"]H2[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]15[/TD]
[TD="align: right"]390,622[/TD]
[TD="align: center"]A5[/TD]
[TD="align: center"]B5[/TD]
[TD="align: center"]C5[/TD]
[TD="align: center"]D5[/TD]
[TD="align: center"]E5[/TD]
[TD="align: center"]F5[/TD]
[TD="align: center"]G5[/TD]
[TD="align: center"]H2[/TD]
[TD="align: center"]16[/TD]
[TD="align: right"]390,623[/TD]
[TD="align: center"]A5[/TD]
[TD="align: center"]B5[/TD]
[TD="align: center"]C5[/TD]
[TD="align: center"]D5[/TD]
[TD="align: center"]E5[/TD]
[TD="align: center"]F5[/TD]
[TD="align: center"]G5[/TD]
[TD="align: center"]H3[/TD]
[TD="align: center"]17[/TD]
[TD="align: right"]390,624[/TD]
[TD="align: center"]A5[/TD]
[TD="align: center"]B5[/TD]
[TD="align: center"]C5[/TD]
[TD="align: center"]D5[/TD]
[TD="align: center"]E5[/TD]
[TD="align: center"]F5[/TD]
[TD="align: center"]G5[/TD]
[TD="align: center"]H4[/TD]
[TD="align: center"]18[/TD]
[TD="align: right"]390,625[/TD]
[TD="align: center"]A5[/TD]
[TD="align: center"]B5[/TD]
[TD="align: center"]C5[/TD]
[TD="align: center"]D5[/TD]
[TD="align: center"]E5[/TD]
[TD="align: center"]F5[/TD]
[TD="align: center"]G5[/TD]
[TD="align: center"]H5[/TD]
</tbody>
PERMUT(8,5) is the answer to a different question, e.g. We have covered 8 topics this semester. The exam paper will include 5 of these topics (randomly selected). How many possible exam papers, i.e. combinations of topics, can there be? Answer: COMBIN(8,5) = 56
of examination paper topics can there be? Answer: PERMUT(8,5) = 6,720. Because for any of the possible subject combinations in COMBIN(8,5), e.g. A, C, D, F, G (say), we can arrange these subjects in 5! ways, i.e. five possible subjects for the first question, 4 for the second etc etc, and 56 x 5! = 6,720.