関数式の作成 |
|
さいころの出目を決める式の、引数を決めます。 |
セルC3 |
=RIGHT(A6,2) |
セルD3 |
=LEFT(A6,2) |
セルE3 |
=MID(A6,2,2) |
セルF3 |
=MID(A6,4,2) |
|
さいころの出目を決める数値を計算します。 |
セルJ3 |
=IF(A6<>"",IF(OR(ISERR(C3/E3),ISERR(E3/C3)),PI(),IF(OR(C3/E3=1,E3/C3=1),EXP(1),IF(E3>C3,C3/E3,E3/C3))),"") |
セルJ30 |
=IF(A6<>"",IF(OR(ISERR(D3/F3),ISERR(F3/D3)),EXP(1),IF(OR(D3/F3=1,F3/D3=1),PI(),IF(F3>D3,D3/F3,F3/D3))),"") |
|
何回目かを表示します。 |
|
|
セルG2 |
=IF(G6<>"","1回","") |
セルI2 |
=IF(I6<>"","2回","") |
セルK2 |
=IF(K6<>"","3回","") |
セルM2 |
=IF(M6<>"","4回","") |
セルO2 |
=IF(O6<>"","5回","") |
セルQ2 |
=IF(Q6<>"","6回","") |
セルS2 |
=IF(S6<>"","7回","") |
セルU2 |
=IF(U6<>"","8回","") |
セルW2 |
=IF(W6<>"","9回","") |
セルY2 |
=IF(Y6<>"","10回","") |
セルAA2 |
=IF(AA6<>"","11回","") |
セルAC2 |
=IF(AC6<>"","12回","") |
|
順番のときに、さいころの出目を表示します。 |
セルK4 |
=IF(A6<>"",MOD(MID(J3,K3,2),6),"") |
セルL4 |
=IF(COUNTIF($C$9:$AB$27,"*")>=7,MOD(MID($J$3,L3,2),6),"") |
セルM4 |
=IF(COUNTIF($C$9:$AB$27,"*")>=9,MOD(MID($J$3,M3,2),6),"") |
セルN4 |
=IF(COUNTIF($C$9:$AB$27,"*")>=11,MOD(MID($J$3,N3,2),6),"") |
セルO4 |
=IF(COUNTIF($C$9:$AB$27,"*")>=13,MOD(MID($J$3,O3,2),6),"") |
セルP4 |
=IF(COUNTIF($C$9:$AB$27,"*")>=15,MOD(MID($J$3,P3,2),6),"") |
セルQ4 |
=IF(COUNTIF($C$9:$AB$27,"*")>=17,MOD(MID($J$3,Q3,2),6),"") |
セルR4 |
=IF(COUNTIF($C$9:$AB$27,"*")>=19,MOD(MID($J$3,R3,2),6),"") |
セルS4 |
=IF(COUNTIF($C$9:$AB$27,"*")>=21,MOD(MID($J$3,S3,2),6),"") |
セルT4 |
=IF(COUNTIF($C$9:$AB$27,"*")>=23,MOD(MID($J$3,T3,2),6),"") |
セルU4 |
=IF(COUNTIF($C$9:$AB$27,"*")>=25,MOD(MID($J$3,U3,2),6),"") |
セルV4 |
=IF(COUNTIF($C$9:$AB$27,"*")>=27,MOD(MID($J$3,L3,3),6),"") |
|
順番のとき、さいころの色を変えて表示する条件式を表します。 |
セルK5 |
=AND(K4<>"",COUNT(L4:$V$4)<1,COUNT(K31:$V$31)<1) |
セルL5 |
=AND(L4<>"",COUNT(M4:$V$4)<1,COUNT(L31:$V$31)<1) |
セルM5 |
=AND(M4<>"",COUNT(N4:$V$4)<1,COUNT(M31:$V$31)<1) |
セルN5 |
=AND(N4<>"",COUNT(O4:$V$4)<1,COUNT(N31:$V$31)<1) |
セルO5 |
=AND(O4<>"",COUNT(P4:$V$4)<1,COUNT(O31:$V$31)<1) |
セルP5 |
=AND(P4<>"",COUNT(Q4:$V$4)<1,COUNT(P31:$V$31)<1) |
セルQ5 |
=AND(Q4<>"",COUNT(R4:$V$4)<1,COUNT(Q31:$V$31)<1) |
セルR5 |
=AND(R4<>"",COUNT(S4:$V$4)<1,COUNT(R31:$V$31)<1) |
セルS5 |
=AND(S4<>"",COUNT(T4:$V$4)<1,COUNT(S31:$V$31)<1) |
セルT5 |
=AND(T4<>"",COUNT(U4:$V$4)<1,COUNT(T31:$V$31)<1) |
セルU5 |
=AND(U4<>"",COUNT($V4:V$4)<1,COUNT(U31:$V$31)<1) |
セルV5 |
=AND(V4<>"",COUNT($W4:W$4)<1,COUNT($V31:V$31)<1) |
|
さいころを表示します。 |
セルG6 |
=IF(C18<>"",IF(K4=1,"",IF(K4=2,"",IF(K4=3,"",IF(K4=4,"",IF(K4=5,"",IF(K4=0,"","")))))),"") |
セルI6 |
=IF(L4=1,"",IF(L4=2,"",IF(L4=3,"",IF(L4=4,"",IF(L4=5,"",IF(L4=0,"","")))))) |
セルK6 |
=IF(M4=1,"",IF(M4=2,"",IF(M4=3,"",IF(M4=4,"",IF(M4=5,"",IF(M4=0,"","")))))) |
セルM6 |
=IF(N4=1,"",IF(N4=2,"",IF(N4=3,"",IF(N4=4,"",IF(N4=5,"",IF(N4=0,"","")))))) |
セルO6 |
=IF(O4=1,"",IF(O4=2,"",IF(O4=3,"",IF(O4=4,"",IF(O4=5,"",IF(O4=0,"","")))))) |
セルQ6 |
=IF(P4=1,"",IF(P4=2,"",IF(P4=3,"",IF(P4=4,"",IF(P4=5,"",IF(P4=0,"","")))))) |
セルS6 |
=IF(Q4=1,"",IF(Q4=2,"",IF(Q4=3,"",IF(Q4=4,"",IF(Q4=5,"",IF(Q4=0,"","")))))) |
セルU6 |
=IF(R4=1,"",IF(R4=2,"",IF(R4=3,"",IF(R4=4,"",IF(R4=5,"",IF(R4=0,"","")))))) |
セルW6 |
=IF(S4=1,"",IF(S4=2,"",IF(S4=3,"",IF(S4=4,"",IF(S4=5,"",IF(S4=0,"","")))))) |
セルY6 |
=IF(T4=1,"",IF(T4=2,"",IF(T4=3,"",IF(T4=4,"",IF(T4=5,"",IF(T4=0,"","")))))) |
セルAA6 |
=IF(U4=1,"",IF(U4=2,"",IF(U4=3,"",IF(U4=4,"",IF(U4=5,"",IF(U4=0,"","")))))) |
セルAC6 |
=IF(V4=1,"",IF(V4=2,"",IF(V4=3,"",IF(V4=4,"",IF(V4=5,"",IF(V4=0,"","")))))) |
|
角のセルに止まったら絵(セルAM11からAN25に入力しておく)を表示させます。 |
セルR11 |
=IF(P12<>"",AM13,"") |
セルR23 |
=IF(P24<>"",AN13,"") |
セルY12 |
=IF(W15<>"",AM20,"") |
セルY22 |
=IF(W21<>"",AN20,"") |
|
順番の表示をします。 |
セルA12 |
=IF(OR(A15<>"",AD20<>""),"",IF(COUNTIF(C8:AD17,"*")-2=COUNTIF(C19:AD27,"*")-2, → |
|
→ "順番だよ",COUNTIF(C8:AD17,"*")-2)) |
セルA23 |
=IF(OR(A21<>"",AD16<>""),"",IF(COUNTIF(C8:AD17,"*")-2>COUNTIF(C19:AD27,"*")-2, → |
|
→ "順番だよ",COUNTIF(C19:AD27,"*")-2)) |
|
勝敗の表示をします。 |
セルA15 |
=IF(AND(COUNTIF($C$8:$AD$17,"*")=COUNTIF($C$19:$AD$28,"*"),
AND($AD$16<>"",$AD$20="")),"勝ちました", → |
|
→ IF(AND(COUNTIF($C$8:$AD$17,"*")=COUNTIF($C$19:$AD$28,"*"),AND($AD$16<>"",$AD$20<>"")),"引き分け","")) |
セルA21 |
=IF(AND(COUNTIF($C$8:$AD$17,"*")=COUNTIF($C$19:$AD$28,"*"),AND($AD$16="",$AD$20<>"")),"勝ちました", → |
|
→ IF(AND(COUNTIF($C$8:$AD$17,"*")=COUNTIF($C$19:$AD$28,"*"),AND($AD$16<>"",$AD$20<>"")),"引き分け","")) |
|
条件付き書式 |
|
さいころの色を、セルK5の順番のとき、式が「TRUE」のとき変化させます。 |
|
条件1(1)は、セルK5に入力してある式を条件として使います。 |
|
セルG6 条件付き書式は =K5 |
|
セルI6 条件付き書式は =L5 |
|
セルK6 条件付き書式は =M5 |
|
セルL6 条件付き書式は =N5 |
|
セルM6 条件付き書式は =O5 |
|
セルO6 条件付き書式は =P5 |
|
セルQ6 条件付き書式は =Q5 |
|
セルS6 条件付き書式は =R5 |
|
セルU6 条件付き書式は =S5 |
|
セルW6 条件付き書式は =T5 |
|
セルAA6 条件付き書式は =U5 |
|
セルAC6 条件付き書式は =V5 |
|
さいころの色を、セルK31のさいころの数が表示されたとき変化させます。 |
|
セルG33 条件付き書式は =AND(k31<>"",COUNT(L4:$W$4)<1) |
|
セルI33
条件付き書式は =AND(L31<>"",COUNT(M4:$W$4)<1) |
|
セルK33 条件付き書式は =AND(M31<>"",COUNT(N4:$W$4)<1) |
|
セルL33 条件付き書式は =AND(N31<>"",COUNT(O4:$W$4)<1) |
|
セルM33 条件付き書式は =AND(O31<>"",COUNT(P4:$W$4)<1) |
|
セルO33 条件付き書式は =AND(P31<>"",COUNT(Q4:$W$4)<1) |
|
セルQ33 条件付き書式は =AND(Q31<>"",COUNT(R4:$W$4)<1) |
|
セルS33 条件付き書式は =AND(R31<>"",COUNT(S4:$W$4)<1) |
|
セルU33 条件付き書式は =AND(S31<>"",COUNT(T4:$W$4)<1) |
|
セルW33 条件付き書式は =AND(T31<>"",COUNT(U4:$W$4)<1) |
|
セルAA33 条件付き書式は =AND(U31<>"",COUNT(V4:$W$4)<1) |
|
セルAC33 条件付き書式は =AND(V31<>"",COUNT(W4:$W$4)<1) |
|
何回目かを表示します。 |
セルG32 |
=IF(G33<>"","1回","") |
セルI32 |
=IF(I33<>"","2回","") |
セルK32 |
=IF(K33<>"","3回","") |
セルM32 |
=IF(M33<>"","4回","") |
セルO32 |
=IF(O33<>"","5回","") |
セルQ32 |
=IF(Q33<>"","6回","") |
セルS32 |
=IF(S33<>"","7回","") |
セルU32 |
=IF(U33<>"","8回","") |
セルW32 |
=IF(W33<>"","9回","") |
セルY32 |
=IF(Y33<>"","10回","") |
セルAA32 |
=IF(AA33<>"","11回","") |
セルAC32 |
=IF(AC33<>"","12回","") |
|
順番のときに、さいころの出目を表示します。 |
セルK31 |
=IF(COUNTIF(C9:AB17,"*")>=3,MOD(MID(J30,K30,2),6),"") |
セルL31 |
=IF(COUNTIF($C$9:$AD$27,"*")>=8,MOD(MID($J$30,L30,2),6),"") |
セルM31 |
=IF(COUNTIF($C$9:$AD$27,"*")>=10,MOD(MID($J$30,M30,2),6),"") |
セルN31 |
=IF(COUNTIF($C$9:$AD$27,"*")>=12,MOD(MID($J$30,N30,2),6),"") |
セルO31 |
=IF(COUNTIF($C$9:$AD$27,"*")>=14,MOD(MID($J$30,O30,2),6),"") |
セルP31 |
=IF(COUNTIF($C$9:$AD$27,"*")>=16,MOD(MID($J$30,P30,2),6),"") |
セルQ31 |
=IF(COUNTIF($C$9:$AD$27,"*")>=18,MOD(MID($J$30,Q30,2),6),"") |
セルR31 |
=IF(COUNTIF($C$9:$AD$27,"*")>=20,MOD(MID($J$30,R30,2),6),"") |
セルS31 |
=IF(COUNTIF($C$9:$AD$27,"*")>=22,MOD(MID($J$30,S30,2),6),"") |
セルT31 |
=IF(COUNTIF($C$9:$AD$27,"*")>=24,MOD(MID($J$30,T30,2),6),"") |
セルU31 |
=IF(COUNTIF($C$9:$AD$27,"*")>=26,MOD(MID($J$30,U30,2),6),"") |
セルV31 |
=IF(COUNTIF($C$9:$AD$27,"*")>=28,MOD(MID($J$30,K30,3),6),"") |
|
さいころを表示します。 |
セルG33 |
=IF(K31=1,"",IF(K31=2,"",IF(K31=3,"",IF(K31=4,"",IF(K31=5,"",IF(K31=0,"","")))))) |
セルI33 |
=IF(L31=1,"",IF(L31=2,"",IF(L31=3,"",IF(L31=4,"",IF(L31=5,"",IF(L31=0,"","")))))) |
セルK33 |
=IF(M31=1,"",IF(M31=2,"",IF(M31=3,"",IF(M31=4,"",IF(M31=5,"",IF(M31=0,"","")))))) |
セルM33 |
=IF(N31=1,"",IF(N31=2,"",IF(N31=3,"",IF(N31=4,"",IF(N31=5,"",IF(N31=0,"","")))))) |
セルO33 |
=IF(O31=1,"",IF(O31=2,"",IF(O31=3,"",IF(O31=4,"",IF(O31=5,"",IF(O31=0,"","")))))) |
セルQ33 |
=IF(P31=1,"",IF(P31=2,"",IF(P31=3,"",IF(P31=4,"",IF(P31=5,"",IF(P31=0,"","")))))) |
セルS33 |
=IF(Q31=1,"",IF(Q31=2,"",IF(Q31=3,"",IF(Q31=4,"",IF(Q31=5,"",IF(Q31=0,"","")))))) |
セルU33 |
=IF(R31=1,"",IF(R31=2,"",IF(R31=3,"",IF(R31=4,"",IF(R31=5,"",IF(R31=0,"","")))))) |
セルW33 |
=IF(S31=1,"",IF(S31=2,"",IF(S31=3,"",IF(S31=4,"",IF(S31=5,"",IF(S31=0,"","")))))) |
セルY33 |
=IF(T31=1,"",IF(T31=2,"",IF(T31=3,"",IF(T31=4,"",IF(T31=5,"",IF(T31=0,"","")))))) |
セルAA33 |
=IF(U31=1,"",IF(U31=2,"",IF(U31=3,"",IF(U31=4,"",IF(U31=5,"",IF(U31=0,"","")))))) |
セルAC33 |
=IF(V31=1,"",IF(V31=2,"",IF(V31=3,"",IF(V31=4,"",IF(V31=5,"",IF(V31=0,"","")))))) | |