“h ave your answers questioned.”. day 6: excel chapter 3 cody cutright...

27
“HAVE YOUR ANSWERS QUESTIONED.”

Upload: brayan-sweeting

Post on 02-Apr-2015

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

“HAVE YOUR ANSWERS QUESTIONED.”

Page 2: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

DAY 6:EXCEL CHAPTER 3

Cody Cutright

[email protected]

September 8th, 2014

Page 3: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

3

REMINDERS

• Homework #1 is due 09/12 at 11:55pm– Go to CS 101 website

-> Instructors

-> Cody Cutright

-> Assignments

Page 4: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

4

IMPORTING DATA

Importing is the process of inserting data from one application or file into another.

Excel lets us import a few different types of data!

Page 5: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

5

IMPORT(ANT) DECISIONS

Decide ahead of time if you want to embed data or link to it.

Embedded data: Is not linked to the original source, and can be edited. A change in the data in one place does not affect the other.

Data as a connection: Linked to the original data, Excel can then be refreshed from the source and the data updated if any changes are made.

Page 6: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

6

IMPORT A TEXT FILE

Text Files: (Notepad, anyone?)

– .txt file extension (SomeTitle.txt)– No formatting– No sound– No video– Lots of data!

Page 7: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

7

WHERE DO THEY COME FROM?

“When a text editor loves a character…”

• Can be created in Notepad• Can be downloaded from an organization’s

website (things like accident statistics, cars sold, etc)

*The benefit is that you can import a text file into multiple different programs, without distorting the text.

Page 8: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

8

DELIMITERS!

Delimiters are special characters that separate the data, so it doesn’t run together.

The most common delimiters:

Tabs: TAB (Tab delimited)

Commas: , (Comma Separated Value “CSV”)

Page 9: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

9

TAB DELIMITED

Page 10: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

10

TAB DELIMITED IMPORT

Page 11: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

11

CSV

Page 12: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

12

CSV IMPORT

Page 13: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

13

IMPORT STEPS

• Data Ribbon• Get External Data• From Text• Select File• Follow Wizard Prompts

Page 14: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

14

THE WIZARD

Page 15: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

15

THE WIZARD – CONT’D

Page 16: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

16

THE WIZARD – CONT’D

Page 17: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

17

IMPORTING FROM ACCESS

• Databases are usually less intuitive about manipulating data, or lack the ability to do so

• Maintaining a database connection (in this case Access) eliminates the need to copy/paste data into Excel

Page 18: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

18

ACCESS IMPORT STEPS

1. Start Excel, open an existing workbook

2. Click the Data Ribbon -> Get External Data -> From Access

3. Select the Access Database File, click open

4. Choose the table or query to import (Tables are one rectangle, queries two)

5. Select how you want to view the data in your workbook, such as Table or PivotTable

Page 19: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

19

OTHER DATA SOURCESSource Definition

SQL Server Create a connection to an SQL server table and import data as a table or PivotTable.

Analysis Services Create a connection to an SQL server analysis services cube, and import data as a table or PivotTable

XML Data Import Open or map an XML file into Excel

Data Connection Wizard Import data for an unlisted format by using the Data Connection Wizard and OLEDB.

Microsoft Query Import data for an unlisted format by using the Microsoft Query Wizard and ODBC.

Table 3.1

Page 20: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

20

XML

eXtensible Markup Language (XML) – is an industry standard for structuring data that enables data to be shared across applications, operating systems, and hardware.

Page 21: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

21

WHY XML?

• It enables data to be sent/received between disparate and otherwise incompatible systems.

***Sidenote: XML describes the structure of data, not the appearance or formatting.

Page 22: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

22

UNDERSTANDING XML SYNTAX

3bedrooms/2bathrooms-$1,000permonth-(305)555-1234

Page 23: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

23

MARKED UP AS XML

<Apartment>

<Bedrooms>3</Bedrooms><Bathrooms>2</Bathrooms><Rent>$1,000</Rent><Telephone>(305)555-1234</

Telephone></Apartment>

Page 24: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

24

Page 25: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

25

IMPORTING XML DATA

• Data Ribbon• Get External Data• From Other Sources• From XML Data Import

(Excel remembers this connection, and you can refresh the data if needed)

Page 26: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014

26

EMBEDDING XML DATA

• File -> Open• File Type -> XML• Select the correct file• Select how you want to open the file

Page 27: “H AVE YOUR ANSWERS QUESTIONED.”. DAY 6: EXCEL CHAPTER 3 Cody Cutright cody.cutright@mail.wvu.edu September 8th, 2014