A plugin for Excel, plus lots of supporting code.