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
    Location
    Nanaimo, BC, Canada
    Posts
    2,090
    Articles
    79
    Blog Entries
    14
    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 (Excel)

    Master your data with Power Query: Purchase your copy of my book M is for Data Monkey today!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/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
  •