Results 1 to 2 of 2

Thread: Data Orgenization with VBA

  1. #1

    Post Data Orgenization with VBA

    Register for a FREE account, and/
    or Log in to avoid these ads!

    I know a little about VBA for Excel.
    Let me know if the following problem can be solved:

    (file attached)
    Attached Files Attached Files

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Nanaimo, BC, Canada
    Blog Entries
    Excel Version
    Excel Office 365 Insider
    Question for you... are you going to just be adding to this list, or maintaining it?

    Reason I ask is that, if you're just going to be adding new players to it and their quantities, I'd be tempted to set up a list and append the data there, then use a PivotTable to summarize it in the format you're looking for.

    Regardless, the format of your input should change as it will be nasty to try and extract it from what you entered.

    I'd suggest a format change to do the following:
    -Set the name of the player in one cell
    -Have a table where you
    -->Select the troop type
    -->Select the troop subtype
    -->Insert the troop quantity

    With that, you could switch the table to be able to pick the troop type/subtypes from a list, and enter all your players troop details at once.

    After that, we'd need to write a little VBA to append the data to a table and refresh a PivotTable.
    Ken Puls, FCPA, FCMA, MS MVP

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book Master Your Data for Excel and Power BI, or our new Power Query Recipe cards!

    Main Site: -||- Blog: -||- Forums:
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

Posting Permissions

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