+ Reply to Thread
Results 1 to 3 of 3

Find identical item, look for true 2 columns over.

  1. #1
    Registered User
    Join Date
    08-18-2009
    Location
    Cincinnati
    MS-Off Ver
    Excel 2007
    Posts
    96

    Find identical item, look for true 2 columns over.

    I’m putting together a blackjack odds calculator. I could use some help with a formula. If I have an A,7 (ace low) it needs to return a 0 (or false) for a “Possible Hand” because further down the column A,7 (ace hi) has a true “End Hand Total”

    I was going to use an IF and a VLOOKUP (looking lower on the column), but then I cannot sort the column. Is there a formula that will find the hand and check for true 2 columns over from identical hand.

    There are 169 starting hand combinations. The attached worksheet only has 31 – for simplification.

    Thank you much
    Attached Files Attached Files
    Last edited by bluerog; 02-19-2010 at 01:16 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Find identical item, look for true 2 columns over.

    If I have understood your description properly, you can use the following formula in G2 and copy it down. I also attached an updated workbook.

    Note that I believe that G8 should also have a 0, based on your description.

    This looks at the current cell and determines if any of the cells below it with the same card combination contains an "End Total Hand" value of 1. If so, it returns 0; if not it returns 1. I am not certain that you only want to look below the current cell, but that seems like what you're doing in the example.

    =IF(SUMIF(C3:C$32,C2,F3:F$32)=0,1,0)

    This assumes that your data ends at row 32, update to suit your specific situation (170?).
    Attached Files Attached Files
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    08-18-2009
    Location
    Cincinnati
    MS-Off Ver
    Excel 2007
    Posts
    96

    Re: Find identical item, look for true 2 columns over.

    Thank you much 6String. That should do the trick.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1