Nothing gives a teacher more satisfaction than seeing a student apply the knowledge to do something awesome. So naturally, I jumped with joy when I got this email from Dan, one of my VBA Class students,
Hi Chandoo,
After going thru your VBA Classes, I realized that we can lots of awesome stuff with pivot tables + simple macros. I recently created an Excel Dashboard to depict MLB (Major League Baseball) Pitching Stats. I could not have done this had I not learned VBA. Thank you so much for teaching the class.
I got curious and requested Dan, if I could share the file with you all. Being a lovely person, Dan agreed immediately.
MLB Pitching Stats Dashboard – using Excel + VBA
[Click here for larger version]
How does this dashboard work?
Dan used a lot of techniques to weave together this dashboard. Since it would take me until Christmas if I explain everything, I made a short video explaining how this dashboard works. See it below:
You can see it on our youtube channel too.
What techniques are used in this dashboard?
Dan is a regular reader of Chandoo.org, so he used many of the charting & formula techniques we teach here (as well as in my Excel School & VBA classes). Click thru below links to learn them.
- Dynamic Named Ranges using OFFSET formula
- Dynamic Charts
- Using Form Controls
- Sorting a list using Pivot Tables
- Updating Pivot Table Report Filters using VBA
- Excel Dashboards – Examples, Resources & Ideas
- Highlighting points in line charts & scatter plots
Download MLB Pitching Stats Excel Dashboard
Click here to download the Excel workbook and play with the dashboard.
Ready to Create your Own Dashboards & VBA Code?
If you want to create similar stuff and wow everyone at work, then joining my upcoming batch of VBA classes is a good idea. We are re-opening enrollments for this course on September 5th.
Click here for course details.
If you are interested in our VBA class, join our newsletter.
Thank you Dan
Thank you so much Dan for making my day. I really liked the way you have put together many concepts to create a stunning dashboard.
If you liked this dashboard, say thanks to Dan.
11 Responses to “MLB Pitching Stats Dashboard in Excel+VBA by our VBA Class Student”
Hey Dan,
Thanks a lot... this is too good 🙂
Awesome stuff Dan! very impressed..
Thanks guys.
Some nice ideas in there, thanks for sharing. I noticed the list with teams has a missing value though ('Arizona Diamondbacks'). Also when manipulating Pivot Tables with VBA you should be really careful not to try to select a value that isn't in the Pivot Table, if you do all hell breaks loose 🙂 That's not the case here but just some advise as I learned the hard way...
Ah.....ya caught me.
dnrTeamName drives both the charts and the drop down list. It refers to:
=OFFSET(PvtTeams!$A$6,0,0,COUNTA(PvtTeams!$A$6:$A$40),1)
If you change A6 to A5, it fixes that little issue.
A better question though, who actually cares about the Arizona Diamondbacks?
🙂
Excellent post. Thanks
Great job, Dan! Thanks a million!
[...] MLB Pitching Statistics Dashboard [...]
Gr8 work Dan
Hi,
I downloaded file, but looks like everything is in xml. Was there suppose to be excel file as well?
Thanks!
I'm late to the party, but seeing this file in action and studying the underlying data in this Excel file has been AWESOME. I have TONS of new ideas to implement in my work files now. THANK YOU Dan and Chandoo!