multiple IF functions, expert excel users please help

martyloo

Board Regular
Joined
Sep 29, 2010
Messages
100
how do I have multiple if functions all in one cell?

i.e:- =if(and(this cell equals this and this cell equals this display = "","")
=if(and(this cell equals this and this cell equals this display = "","")
=if(and(this cell equals this and this cell equals this display = "","")
=if(and(this cell equals this and this cell equals this display = "","")

Is this possible, if so how many can I have in one cell? I am creating a BlackJack Strategy spreadsheet which for example:

When Ten and two is pressed for your cards
and Ten is pressed for the dealers card the function would be

=if(and(C1=10,B1=2,C3=10),"HIT","")

Obviously I need to repeat this function hundreds of times for different card Hand Combinations against the Dealer, is there anyway of doing this?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
You can nest IF statements up to seven deep but if you want my advice, the very fact that you're asking this question suggests that you're going to have problems writing formulae as complex as that. Trouble-shooting them if they don't work properly is going to present you with a nightmare as you won't be able to see what the individual parts are evaluating to.

I suggest you use a couple of 'helper' columns to calculate the point holdings in each hand, then a third column to calculate whether to hit or not.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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