Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly...

20
Data Analysis in Excel

Transcript of Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly...

Page 1: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

Data Analysis in Excel

Page 2: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

Importance of Data Analysis

• Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and many other activities

• You can read a lot about this in the media; a good article is “Big Data’s Impact On the World,” (The Age of Big Data) by Steve Lohr, which appeared in the New York Times for February 11, 2012

• Also see the movie “Moneyball”

Page 3: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

Data Driven Decision-Making

• Retailers use data about sales, the economy, and the weather to tailor product selections at their stores

• Shipping companies like UPS study their data to help improve delivery routes and timing

• Police departments use analysis of arrest patterns, holidays, sporting events, paydays, and weather to predict where crime is likely to occur and deploy officers preventatively

Page 4: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

Excel is Like a Swiss Army Knife

• There are lots of great tools in Excel; we’ve seen a selection already

• In this session we’ll look at putting them together to analyze data for a small company

• If you have many thousands of lines of data, you should use a database; if you have serious statistics to do, use a specialized statistical package

• But if you have a (relatively) small amount of data and want to do some simple analysis, Excel is great

Page 5: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

Requirements

• Remember the four steps? • The first thing is to think hard about what kind

of analysis you might want to do and what data you need to do it

• In the Real Estate example, I really could have used dates in my entries! That way I could do quarter to quarter comparisons

• It’s MUCH easier to collect the data as you go along

Page 6: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

Specification

• Design the table you will need: What fields does it have? What types are they?

• You can design a data collecting program similar to RealEstatePivot, with a form for user input, ranges where choices for some kinds of data are defined, etc.

• We’ll be looking at pivot tables and pivot charts, but there are many other possible tools to use

Page 7: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

Bulletproofing

• Use list boxes for entries where possible• Check numeric entries to be sure they are legal;

you can also include a reasonableness check• Make sure any required fields are completed• Consider an option to delete the last entry• Consider an autosave option after data is added• Have an external backup process for any

important document

Page 8: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

Using the Pivot Tools

• Once you have a table, you can use it as the basis for multiple pivot tables and pivot charts to help you see your data

• Our main example is done using Windows; we’ve appended some slides showing what things look like on Mac

Page 9: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

I’ve made my data into a table, and Icreated a button to let me insert data at any point, not just when the spreadsheet opens. I used the name manager to name the table SalesDataTable

Page 10: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

I pushed the button and filled out the data form…

Page 11: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

A new line has been inserted. The table expanded automatically to include it. After each insertion, the program saves the workbook.

Page 12: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

My pivot table before refreshing. Claire has 6sales and there are 24 sales in all.

Page 13: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

I right clicked on the table and am ready to click Refresh…

Page 14: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

Claire now has 7 sales and thereare 25 all together.

Page 15: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

Adding a Pivot Chart

• When you make a chart based on a pivot table, it has the properties of the table and will refresh when the table refreshes

• If you change the way data is organized in the chart, Excel will modify the pivot table accordingly, and vice-versa

• The next slide shows a pivot chart (stacked column chart). You could use any chart format that makes sense

Page 16: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

Ready to create the chart…

Page 17: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

Here’s the result. You can’t see the counts because they are on the same scale as the amounts.

Page 18: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

I right clicked on Count of Sales, ready to remove it…

Page 19: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

You can see the count is gone from the pivot table as well.You can always have more than one pivot table based on thesame data table.

Page 20: Data Analysis in Excel. Importance of Data Analysis Tracking and analyzing data are increasingly important in business, medicine, sports, politics, and.

The Total System

• This combination of tools gives us a nice way to enter and analyze our data

• Basing the pivot tables and charts on the data table means that we only have to update the data in that one place, then refresh the rest

• Use multiple charts to look at various aspects of your data