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: 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.
Bookmarks