Here is a quick tip to start the week.
Often, we end up with a situation where a bunch of numbers are stored as text.
In such cases, Excel displays a warning indicator at the top-left corner of the cell. If you click on warning symbol next to the cell, Excel shows a menu offering choices to treat the error.

Converting numbers stored as text back to numbers
Tip #1: Error correction
One easy and quick way to convert all the text-numbers to numbers is,
- Select all the cells
- Click on warning indicator next to top-most cell
- Choose Convert to number option
- Done
Tip#2: Paste Special Convert
Sometimes such text-numbers may be scattered across the worksheet, thus making selection of cells a pain.
In such cases, follow this process (see demo below)
- In a blank cell, just type 1
- Copy this blank cell.
- Select all the cells that have text-numbers.
- Press CTRL+ALT+V to launch Paste Special box.
- Choose Multiply from operation area.
- Click ok & Done!

Enjoy your numbers.
Bonus tip: If you think the error indicators are annoying, you can turn them off. Just go to File > Options > Formulas and turn off all the error checking rules you don’t need.
PS: Thanks to Justin for emailing me the Paste Special Multiply with 1 trick.

















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!