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.
 
Everyone else is piling in so, me too.
Why not use the Mod() function with a divisor of 5?


Excel 2007
ABCDEF
111111success
222221fail
Sheet1
Cell Formulas
RangeFormula
F1=IF(MOD(SUM(A1:E1),5)=0,"success","fail")
F2=IF(MOD(SUM(A2:E2),5)=0,"success","fail")
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Code:
=IF(DELTA(A1,B1),IF(DELTA(C1,D1),IF(DELTA(E1,D1),"Success","Failure"),"Failure"),"Failure")

:)

Sorry, I'm being a nag today, but this seems not to work.

If A1=B1 and C1=D1=E1 your formula returns Success, even if for ex. A1<>C1, OR B1<>E1, etc.
 
Upvote 0
Everyone else is piling in so, me too.
Why not use the Mod() function with a divisor of 5?

Excel 2007
ABCDEF
111111success
222221fail

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
F1=IF(MOD(SUM(A1:E1),5)=0,"success","fail")
F2=IF(MOD(SUM(A2:E2),5)=0,"success","fail")

<tbody>
</tbody>

<tbody>
</tbody>

Hi Bertie

The fact that the sum of 5 numbers is a multiple of 5 does not make them equal. For ex., test with

1,2,3,4,5
 
Upvote 0
Hi Bertie

The fact that the sum of 5 numbers is a multiple of 5 does not make them equal. For ex., test with

1,2,3,4,5

Yep, pretty much realized that as I was pouring a coffee. Och well, back to the drawing board
 
Upvote 0
Sorry, I'm being a nag today, but this seems not to work.

If A1=B1 and C1=D1=E1 your formula returns Success, even if for ex. A1<>C1, OR B1<>E1, etc.

Well spotted:

Code:
=IF(DELTA(A1,B1),IF(DELTA(C1,D1),IF(DELTA(E1,D1),IF(DELTA(B1,C1),"Success","Failure"),"Failure"),"Failure"),"Failure")

to the op, please don't use this ;)
 
Upvote 0
Just as an alternative:
=REPT("Hooray",MIN(A1:E1)=MAX(A1:E1))
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,111
Members
449,205
Latest member
ralemanygarcia

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