0

creating a excel template for poker. in it i will have say a cell (which represents my hand) that has say 98o which represents a nine and eight off suit.

In another table will show the potential hands that my opponent could have.

there are 6 ways of having a pair of nines and 6 ways of having a pair of eights. But since i am holding an 8 and 9, now there only 4 ways of holding a pair of nines and four ways of holding a pair of eights.

Thus i want a logical formulae that asks

=if((there is a 9 in cell a1), 4, 6)

cheers

4

3 回答 3

2

很容易找出 A1 是否为 9:

=IF(A1 = 9, 4, 6)

如果您的意思是要查看 in 中的值是否A1 包含9,那么您需要:

=IF(FIND(A1,"9"), 4, 6)
于 2012-07-05T15:10:19.490 回答
0

这个公式可以帮助你:

=IF(COUNTIF(A1,"*9*")>0,4,6)
于 2012-07-07T03:56:39.537 回答
0

我环顾四周,这似乎有效。

=IF(ISERROR(FIND("9", H2))=TRUE, 6, 3)

任何人都知道更简单的事情

于 2012-07-05T15:53:22.967 回答