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

Post on 02-Apr-2015

221 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

“HAVE 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

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!

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.

6

IMPORT A TEXT FILE

Text Files: (Notepad, anyone?)

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

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.

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”)

9

TAB DELIMITED

10

TAB DELIMITED IMPORT

11

CSV

12

CSV IMPORT

13

IMPORT STEPS

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

14

THE WIZARD

15

THE WIZARD – CONT’D

16

THE WIZARD – CONT’D

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

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

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

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.

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.

22

UNDERSTANDING XML SYNTAX

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

23

MARKED UP AS XML

<Apartment>

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

Telephone></Apartment>

24

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)

26

EMBEDDING XML DATA

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

top related