Multiple "IF" and "And" formula

hgh1_us

New Member
Joined
Mar 4, 2006
Messages
12
Office Version
  1. 2019
Platform
  1. MacOS
  2. Mobile
Hey Guys,

I am wanting to create a formula as it pertains to the game roulette.

I have a random number simulating a number on the roulette wheel and also a formula to tell me if I won or not, but I need a formula to tell me what to bet based on certain conditions.

Both column D&E will have identical bets based on the last spin below..

1. If I win and the result in column "B" is a "Yes" or Column "C" is a "1" (same thing).. then the bet needs to reduced by $20 for each win, with $10 being the minimum bet for both column D and E.
2. If I lose the the result is a "No" or a "0" respectfully, then the bet needs to be increased by $30 for each lose (for both column D and E)

I'm sure I could figure out the formula for what to do If I win (d6 =d5-20) or if I lose (d6=d5+30), but the addition of the other "if" "and" ($10 minimum bet is making it hard for me).

Thanks so much for your help.. picture is attached.
 

Attachments

  • Screenshot 2023-03-22 201155.png
    Screenshot 2023-03-22 201155.png
    35.7 KB · Views: 20

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
try this:
mr excel questions 17.xlsm
ABCDE
3Random #Win?bet col1bet col 2
423Yes1010
514Yes1010
627Yes1010
77No4040
87No7070
920Yes5050
1022Yes3030
hgh1_us
Cell Formulas
RangeFormula
D4:D10D4=IF(B4="Yes",MAX(10,N(D3)-20),D3+30)
E4:E10E4=IF(B4="Yes",MAX(10,N(E3)-20),E3+30)
 
Upvote 0
Solution
My pleasure, and if you think a post here has provided you with a solution, please mark it as the answer.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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