Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / December 2005

Tip: Looking for answers? Try searching our database.

Help with INDEX lookup please - Poker Odds Table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jefferds44 - 17 Dec 2005 23:00 GMT
Hi,

I have struggled with this all day and was not able to pinpoint the
problem.

I have a table for poker odds that I have created for texas holdem. It
has the first hole card, by second hole card with probabilities wo win
the hand with those two cards.

Pot equity versus hands that have greater than 32% pot equity against a
random hand (Random hand). It looks like this:                       
    A    K    Q    J    T    9    8    7    6    5    4    3    2    Suited
A    0.852    0.6705    0.6621    0.654    0.646    0.6278    0.6194    0.6098    0.5991    0.5992    0.5903    0.5822    0.5738   
K    0.6532    0.824    0.634    0.6257    0.6179    0.5999    0.5831    0.5754    0.5664    0.5579    0.5489    0.5406    0.5321   
Q    0.6443    0.6146    0.7993    0.6026    0.5947    0.5766    0.5602    0.543    0.5361    0.5277    0.5186    0.5102    0.5017   
J    0.6356    0.6057    0.5814    0.7747    0.5753    0.5566    0.5402    0.5233    0.5061    0.4999    0.4907    0.4823    0.4738   
T    0.6272    0.594    0.573    0.5529    0.7501    0.5403    0.5233    0.5064    0.4894    0.4722    0.4653    0.4569    0.4484   
9    0.6077    0.5781    0.5536    0.5325    0.5153    0.7206    0.508    0.4912    0.4743    0.4572    0.4386    0.4326    0.4242   
8    0.5987    0.5602    0.536    0.5149    0.4972    0.481    0.6916    0.4794    0.4624    0.4455    0.427    0.4087    0.4027   
7    0.5884    0.5519    0.5177    0.4968    0.4791    0.463    0.4505    0.6624    0.4537    0.4368    0.4185    0.4004    0.3816   
6    0.5768    0.5422    0.5102    0.4784    0.461    0.4449    0.4324    0.4232    0.6329    0.4313    0.4133    0.3953    0.3767   
5    0.577    0.5331    0.5012    0.4718    0.4425    0.4267    0.4143    0.4051    0.3994    0.6033    0.4145    0.3969    0.3785   
4    0.5673    0.5233    0.4913    0.4619    0.435    0.4067    0.3947    0.3855    0.3801    0.3816    0.5702    0.3864    0.3683   
3    0.5585    0.5143    0.4822    0.4528    0.426    0.4002    0.3748    0.366    0.3608    0.3627    0.3515    0.5369    0.3598   
2    0.5493    0.5051    0.473    0.4435    0.4169    0.391    0.3683    0.3458    0.3408    0.3429    0.332    0.323    0.5033   
Offsuit                                                       
I want to create a lookup that finds the value in column "A" and row
"K" for example.

My problem is that the lookup works great for hands that are composed
of letters (for example Ace King = AK). But the formula returns errors
for hands that have numbers in them (for example Ace Nine = A9).

I get a #N/A error.

I'm stumped! Please help!

Jeff

Signature

Jefferds44

Jefferds44 - 17 Dec 2005 23:01 GMT
The formatting for the table didnt come out as I planned but you ca
understand that it goes from Ace, King, Queen... all the way to 2 fo
the columns and rows
Dave Peterson - 17 Dec 2005 23:25 GMT
Take a look at Debra Dalgleish's site:
http://www.contextures.com/xlFunctions03.html

Particularly, example #2:
http://www.contextures.com/xlFunctions03.html#IndexMatch2

> Hi,
>
[quoted text clipped - 40 lines]
> Jefferds44's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=29724
> View this thread: http://www.excelforum.com/showthread.php?threadid=494392

Signature

Dave Peterson

Jefferds44 - 17 Dec 2005 23:30 GMT
Hmmmm....

Weird stuff. If I use the Lookup wizard, everything works fine. But if
I type in the formula, it doesn't and I get a #N/A error.

How weird is that? The formula in the two cells are EXACTLY the same
execept one was done using the wizard.

Signature

Jefferds44

Jefferds44 - 17 Dec 2005 23:53 GMT
Thanks for the help Dave.

That link did help me out with my text/number problems.

> Lookup values are Text, and the table contains Numbers
>
[quoted text clipped - 5 lines]
> The double unary (--) converts text to a number, and will work
> correctly even if the lookup values are numbers.

The problem I have however, is that It supposes I should convert the
lookup value in the match formula to either text or number all the
time. Since I can sometimes have letters (i.e. A,K,Q, etc.) and
sometimes have numbers, this fix simply inverses the problem.

By doing what is suggested, now all my number only cards work but not
the text ones.

Thanks for helping, any other ways that I can do this?

-Jeff

Signature

Jefferds44

Dave Peterson - 18 Dec 2005 00:20 GMT
If you format your headers (both row and column) as Text and reenter the numeric
values, then you could make sure you're always using text when you do the match:

=match(a5&"", .....

> Thanks for the help Dave.
>
[quoted text clipped - 27 lines]
> Jefferds44's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=29724
> View this thread: http://www.excelforum.com/showthread.php?threadid=494392

Signature

Dave Peterson

Dave Peterson - 18 Dec 2005 00:17 GMT
I'd guess that there was at least on difference.

You may want to enter the formula (twice), then edit the formula to remove the
leading equal sign (just making it text).  It might make it easier to see the
difference.

Or just post both of them in your reply.

> Hmmmm....
>
[quoted text clipped - 9 lines]
> Jefferds44's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=29724
> View this thread: http://www.excelforum.com/showthread.php?threadid=494392

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.