Do it in Python and use a dictionary. It'll probably take you around an hour to install Python, learn everything you need to know and write the script. I wrote a script to tally up and summarize exported Outlook data for my business in about 30 minutes using Python dictionaries - and I'm a total dumbass when it comes to programming.