Credits

Special thanks to Bryan Povlinski from www.spreadsheet-sports.com for creating the initial version. You can find his original post here.