+ Reply to Thread
Results 1 to 9 of 9

Somewhat complex document; problems extracting and organizing data from cells

  1. #1
    Registered User
    Join Date
    05-02-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    11

    Somewhat complex document; problems extracting and organizing data from cells

    I'm not too sure how to explain the problem so I attached the file here. The data is in column A of Sheet3 and Sheet1 is what I want the data to look like. Everything else in the document is what I've tried so far but nothing seems to work and I've been trying for hours. I want the document to extract the chip size of every player in each hand and organize it like in Sheet1.

    Sheet2 extracts the numbers but only gives 3 numbers when the number has 4 digits and Sheet3 includes the parentheses in triple digit numbers . Even if I did manage to extract the numbers correctly, I'm not too sure how to put them neatly like on Sheet1. Any help would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Somewhat complex document; problems extracting and organizing data from cells

    Take a look at this. I made some assumptions
    1. Chips will always be either 3 or 4 digits
    2. You wanted them sorted by Seat #.

    Is this what you were looking for?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    05-02-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Somewhat complex document; problems extracting and organizing data from cells

    Wow thank you very much, this is exactly what I wanted! Two small things though: chips can sometimes be 2 digits long but never 1 or 5. Also, I would prefer have them sorted by position than by seat #. Position changes every turn and the cell above the first seat tells which seat has the position 'Button' or BU.

    If there are 6 players and seat #1 has button, seat #2 will have SB, seat #3 BB, #4 UTG, #5 MP and #6 will have CO.
    If #2 has button then #3 has SB, #4 BB, #5 UTG, #6 MP and #1 CO and so on. If there are 5 players then there is no MP and if there are 4 players there is no MP and no UTG. If there are only 3 players (the minimum) then there is only BU, SB and BB. What would be the formula to get the seat with the button for each hand? I can make another sheet that gets the chip counts from Sheet1 and rearranges them but I need to know which seat has the button and I don't really understand the formula even though it works well.

    Thanks again for the hepl!

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Somewhat complex document; problems extracting and organizing data from cells

    Here's an update with the # of chips worked out. I added another column (B) where these are calculated and then referred to it in the formula. Matching things up to the proper codes will take a bit longer.
    Attached Files Attached Files

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Somewhat complex document; problems extracting and organizing data from cells

    Here is an attempt.

    Using ChemistB's last submitted sheet, I placed the numbers 6,5,4,3 in R6:R9 and table of chips to represent the number of players and the corresponding seat configuration as he had set.

    Then update ChemistB's formula in D2 to add a +0 to the end to coerce to numeric...

    Please Login or Register  to view this content.
    and copy down and across.

    Then formula I used in K2 is:

    Please Login or Register  to view this content.
    copied down and over...

    Note to get rid of the 0's, select the range and format the cells as Custom with Type: 0;-0;;@

    Hope it helps
    Attached Files Attached Files
    Last edited by NBVC; 05-04-2012 at 07:49 AM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  6. #6
    Registered User
    Join Date
    05-02-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Somewhat complex document; problems extracting and organizing data from cells

    You guys are fantastic, thank you so much!

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Somewhat complex document; problems extracting and organizing data from cells

    I just noticed that my formula above was showing a #REF! error.... I now fixed it and updated the workbook attached.

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Somewhat complex document; problems extracting and organizing data from cells

    Excellent NBVC! I see 1 mistake your formula made. L11 should be a CO. You have two BU's in that row. :-/.

    Using NBVC's solution, I can now get the formatting back to the way you wanted it hihihaha using

    =IFERROR(INDEX($D$2:$I$14,ROW(A1),MATCH(K$18,$K2:$P2,0)),"")

    See attachment.
    Attached Files Attached Files
    Last edited by ChemistB; 05-04-2012 at 09:06 AM. Reason: add file

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Somewhat complex document; problems extracting and organizing data from cells

    Maybe not the most scientific fix, but it works.... (I hope )

    Try:

    Please Login or Register  to view this content.
    copied down and over
    Attached Files Attached Files

+ 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