It is sometimes quickest to just type all the information you need directly into a spreadsheet. However if you know you are going to be updating this spreadsheet regularly, the best thing to do is figure out if there is somewhere where the data is already being recorded for you.
There are multiple sources that you can pull data from: Access, SQL servers, text files or even the internet.
I am going to walk you through importing data from a web page.
There are a while lot of NBA teams out there that are debating their long term financial situation and have to analyze their current contracts. I'm sure they probably have better data sources than most of us, but all us fans only have http://hoopshype.com.
I'm going to show you how to set-up a spreadsheet that can be refreshed with new data with a click of a button.
First open up a spreadsheet and bring up the window you see above in the Data section of the ribbon and click on From Web. Then type in the address of the data table you would like to import, click go and select the table as shown below:
It is important to note that the data you select needs to be in a table already. As discussed before a table is collection of columns where each row represents a unique record. For example in the table we are importing each column represents a years salary amount and each row is the various player names.
After you have selected the tables click on import and select which cell you would like the table headers to appear (or if there is none, the first records). Then select ok. Excel will then do the rest. You will end up with something like this:
If you update this spreadsheet after July 1st, you will find two time champion Adam Morrison and his $6.9m contract no longer show up.
A sheet that will need updating more frequently however is would probably be something that connects to http://finance.yahoo.com/ and pulls quotes on a stock or an index.
The attached workbook has a couple of sheets that you can update to watch the magic happen for yourself.
As always feel free to send questions/comments/tips to me to include in future blog entries.
-Danny