Consulting

Results 1 to 3 of 3

Thread: Sorting Columns into Tables

  1. #1
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location

    Sorting Columns into Tables

    Hi there.

    I'm sending myself loopy with loops!

    What is the best way to get from this
    Data.jpg to this Teams.jpg?

    Any help would be much appreciated.

    PS There are 16 teams with up to 14 players per team!

    Thanks

    Paul Ked
    Last edited by paulked; 03-08-2017 at 10:09 AM.
    Semper in excretia sumus; solum profundum variat.

  2. #2
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    Update:

    I've managed to extract the team names with
        Set d = CreateObject("scripting.dictionary")
        For Each c In Range("AD:AD")
            tmp = Trim(c.Value)
            If Len(tmp) > 0 Then d(tmp) = d(tmp) + 1
        Next c
        i = 0
        For Each k In d.Keys
            tm(i) = k
            i = i + 1
        Next k
    But it is very slow.

    Still struggling on the rest of it!
    Last edited by paulked; 03-08-2017 at 10:10 AM.
    Semper in excretia sumus; solum profundum variat.

  3. #3
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    I sorted it, kind of! I used a separate loop for each team... Very messy but successful

    Thanks to anyone who looked.
    Semper in excretia sumus; solum profundum variat.

Posting Permissions

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