Dice Roll

Monitor

New Member
Joined
Oct 20, 2013
Messages
11
I have tried many different functions to get a text response when I roll - 1,1,1,1,1 or 2,2,2,2,2 using five dice. The table has 100 rows and the numbers are random. I've tried if, Vlookup, Hlookup and or.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
StDev is a big function for a small problem ...
 
Upvote 0
Of course it is and I'm definitely not suggesting for OP to use it. The original question was answered on the first page and we were just having fun with providing alternative and creative solutions.
 
Upvote 0
Oh -- in that case,

=IF((INDEX(LINEST(A2:E2,,,TRUE),1,1)=0)*(INDEX(LINEST(A2:E2,,,TRUE),3,1)=1), "Hooray", "")
 
Upvote 0
FYI - Summary:

Excel 2010
ABCDEFGHIJKLMNOPQRST
1ABCDEShg 1Shg 2d'Holbach 1d'Holbach 2d'Holbach 3Shg 3Pcg01 1Rick Rothstein 1d'Holbach 4Bertie 1d'Holbach 5RoryA 1Ingolf 1d'Holbach 6Shg 4
211111HoorayHoorayTRUESuccessSuccessSuccessSuccessHooray!SuccesssuccessSuccessHoorayURATRUEHooray
322222HoorayHoorayTRUESuccessSuccessSuccessSuccessHooray!SuccesssuccessSuccessHoorayURATRUEHooray
488888HoorayFALSESuccessSuccessSuccessSuccessHooray!SuccesssuccessSuccessHoorayURATRUEHooray
512345FALSEFailFailFailFailFailuresuccessFailureUUUFFALSE
611111FALSE#DIV/0!FailFailFailHooray!FailuresuccessFailureUUUFFALSE#VALUE!
721313FALSESuccessFailFailFailFailurefailFailureURAFALSE
854897FALSEFailFailFailFailFailuresuccessFailureUUUFFALSE

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet70

Worksheet Formulas
CellFormula
H2=OR(COUNTIF(A2:E2,1)=5,COUNTIF(A2:E2,2)=5)
I2=IF(SUMPRODUCT(1/COUNTIF(A2:E2,A2:E2))<>5,"Success","Fail")
K2=IF(COUNTIF(A2:E2,A2)<>5,"Fail","Success")
L2=IF(COUNTIF(A2:D2,E2)<>4,"Fail","Success")
M2=IF(A2&B2&C2&D2&E2=A2&A2&A2&A2&A2,"Hooray!","")
N2=IF(DELTA(A2,B2),IF(DELTA(C2,D2),IF(DELTA(E2,D2),"Success","Failure"),"Failure"),"Failure")
O2=IF(MOD(SUM(A1:E1),5)=0,"success","fail")
P2=IF(DELTA(A2,B2),IF(DELTA(C2,D2),IF(DELTA(E2,D2),IF(DELTA(B2,C2),"Success","Failure"),"Failure"),"Failure"),"Failure")
Q2=REPT("Hooray",MIN(A2:E2)=MAX(A2:E2))
R2=IF(SUM(A2:E2)=A2*5,"URA","UUUF")
S2=STDEV(A2:E2)=0
T2=IF((INDEX(LINEST(A2:E2,,,TRUE),1,1)=0)*(INDEX(LINEST(A2:E2,,,TRUE),3,1)=1), "Hooray", "")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
F2{=IF(OR(AND(A2:E2=1), AND(A2:E2=2)),"Hooray","")}
G2{=IF(AND(A2:E2 = TRANSPOSE(A2:E2)),"Hooray","")}
J2{=IF(COUNTIF(A2:E2,A2:E2)<>5,"Fail","Success")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
A few more...

Code:
=IF(AVEDEV(A2:E2)=0,"Hooray!","")

Code:
=IF(DEVSQ(A2,B2,C2,D2,E2)=0,"Hooray!","")

Code:
=IF(MIN(A2:E2)=MAX(A2:E2),"Hooray!","")

Code:
=IF(VAR.P(A2:E2)=0,"Hooray!","")

Array formula:

Code:
=IF(AND(CHOOSE({1,2,3,4,5},A2,A2,A2,A2,A2)=A2:E2),"Hooray!","")
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,667
Members
449,462
Latest member
Chislobog

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top