creating graphs in excel. step summary input data highlight data to be graphed insert chart decide...

49
Creating Graphs in Excel

Upload: noreen-hawkins

Post on 25-Dec-2015

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Creating Graphs in Excel

Page 2: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Step Summary

• Input data• Highlight data to be graphed• InsertChart• Decide what type of graph to use• Finish!

Page 3: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Input Data

• Directly in Excel• Imported from Access or Word– Import: to bring data in from another program– Export: to send data to another program

Page 4: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Highlight data

• Drag-click• Ctrl-drag click for data in different places

Page 5: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Create the chart

• Click InsertChart• Or, press the chart button

Page 6: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

The Chart Wizard

• A wizard is a small program to make life easier for you– Install wizard (when you add a new program)– Graphics wizard (to set up your monitor)– Query wizard (in Access!)– Chart wizard (what we will learn now!)

Page 7: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

The Chart Wizard

• Decide what kind of chart you want

Page 8: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Column Chart

Page 9: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Bar Chart

Page 10: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Line Chart

Page 11: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Pie Chart

Page 12: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Scatter Chart

Page 13: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Chart Wizard – View Sample

Page 14: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Chart Wizard – Step 2

• Here we check the data range

• Click to change the data ranges

Page 15: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Chart Wizard Step 3

• Adding titles• Adding axis names

Page 16: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Chart Wizard Step 4

• Where you want the chart

Page 17: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Now you have a chart!

Page 18: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Basic Practice One

• Open “Student Grade exercise.xls”• Make a bar chart showing how many As, Bs,

Cs, Ds, and Fs students received in the class

• Make sure to have a good title, and label the axes!

Page 19: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Basic Practice Two

• Open “Student-Food exercise.xls”• Create a Pie Chart showing the total

percentages of different favorite foods.

• Remember to have a good title and a well-labeled key!

Page 20: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Exporting Data

• Here’s how MS Office can work together!• Access: storing and searching data• Excel: calculations using the data, creating

charts• Word and Powerpoint: presenting the

information

Page 21: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Exporting Data from Access

• Find the data you want to export– Here is where you must design a good query!

• Choose FileExport

Page 22: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Choose what program to export to

Page 23: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Click “Save Formatted”

• When moving to Excel, this will keep your columns and rows!

• Then click “Export All,” and your database will become a spreadsheet

Page 24: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice

• We have a student list with gender and grade.• We want to see who the better students are:

boys or girls!• First, let’s think: what kind of graph would

best show us the answer? Imagine what it would look like…

Page 25: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 2

• A line graph would show us the answer most clearly – 2 lines, one for boys, one for girls.

Page 26: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 3

• What EXACT data to we need to do this?

Page 27: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 4

• We need only the gender and grade fields.• What do we need to do to display only the

gender and grade fields?

Page 28: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 5

• Create a query.• How do we do this?

Page 29: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 6

Page 30: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 7

• Do it!• Export one spreadsheet, with the boys and

the girls grades on it.

• Remember: sort your query by gender, so all the boys’ grades are together, and all the girls’ grades are together.

Page 31: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 8

• Do you have a query that looks like this?

Page 32: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 9

• Now, export this data to Excel 2003 format.

Page 33: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 10

• Now we have this – what do we need to do next?

Page 34: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 11

• For a line graph with 2 lines, Excel must have the data in 2 columns.

• Copy and paste the data into two columns on the same spreadsheet.

Page 35: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 12

Page 36: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 13

• What next?

Page 37: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 14

• Make a line chart.• Remember – have a good title, and label the

axes!

Page 38: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 15

Page 39: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 16

• But what if you must write a report about this, or give a presentation?

Page 40: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 17

• We must get this chart into a Word or Powerpoint file.

• Do you know an easy way to do this?

Page 41: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 18

• Copy and Paste!

• Right click the chart, and choose “Copy”• Open a new Word file• Right click, and choose “Paste”

Page 42: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 19

Page 43: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Export Practice 20

• You can do the same thing in Powerpoint

• Open Powerpoint. Copy your graph onto the first slide.

Page 44: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!
Page 45: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Exporting: Final notes

• Remember, you can change anything you export– Data from Access can be copy and pasted into

rows– Charts exported from Excel can be resized

Page 46: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Final Practice 1

• We want to make a pie chart of students’ favorite foods.

• Open “Student Food Preferences” database• Create a query to show only the data needed.• Export this data to Excel

Page 47: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Final Practice 2

• The data here cannot be used to make a pie chart – we need numbers!

• A useful function is COUNTIF – this will count the number of cells that contain a certain data value.

• The syntax is fx=COUNTIF(range,value)• A real example: =COUNTIF(B2:B27,"Rice")

Page 48: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Final Practice 3

• Create functions to total all the favorite foods. It should look like this:

• Use this data to create a pie chart

Page 49: Creating Graphs in Excel. Step Summary Input data Highlight data to be graphed Insert  Chart Decide what type of graph to use Finish!

Final Practice 4

• Create a pie chart out of the data, as you did in Basic Practice 2

• Copy and paste this chart into a Word document.