Tutorial 11: Connecting to External Data

Slides:



Advertisements
Similar presentations
Internet Basics and Information Literacy
Advertisements

Managing Your Files.
Excel Tutorial 3 Calculating Data with Formulas and Functions
KLARA chemical inventory 2013 Ulrika Olsson. How do I find KLARA – alternative 1  – internwebben – Choose system/tool – Chemical index Klara.
Microsoft Office 2013 ®® Access Tutorial 2 Building a Database and Defining Table Relationships.
Tutorial 8 Sharing, Integrating, and Analyzing Data
Tutorial 12 Collaborating on a Shared Workbook
Developing an Excel Application
Tutorial 8: Developing an Excel Application
Microsoft Excel 2003 Illustrated Complete Excel Files and Incorporating Web Information Sharing.
Microsoft Excel 2010 ® ® Tutorial 6: Managing Multiple Worksheets and Workbooks.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Pasewark & Pasewark 1 Word Lesson 7 Working with Documents Microsoft Office 2007: Introductory.
® Microsoft Office 2010 Word Tutorial 3 Creating a Multiple-Page Report.
Word Lesson 7 Working with Documents
® Microsoft Office 2010 Excel Tutorial 2: Formatting a Workbook.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Exploring Microsoft Excel 2002 Chapter 7 Chapter 7 List and Data Management: Converting Data to Information By Robert T. Grauer Maryann Barber Exploring.
Managing Grades with Excel Viewing Help To view Help 1.Open Excel on your computer. 2.In the top right hand corner of the Excel Screen type in the.
Microsoft Excel 2010 Chapter 7
Access Tutorial 3 Maintaining and Querying a Database
Integrating Access with the Web and with Other Programs.
SUNY Morrisville-Norwich Campus- Week 7 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Tutorial 8 Sharing, Integrating and Analyzing Data
Tutorial 11: Connecting to External Data
FIRST COURSE Creating Web Pages with Microsoft Office 2007.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Maintaining and Querying a Database Microsoft Access 2010.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
11 Exploring Microsoft Office Excel 2007 Chapter 4: Working with Large Worksheets and Tables Chapter 04 - Lecture Notes (CSIT 104)
ACOT Intro/Copyright Succeeding in Business with Microsoft Excel
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
Chapter 19 Managing Worksheet Lists. Creating Lists ► Microsoft Office Excel 2003 is inarguably the most powerful electronic spreadsheet available. ►
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
Microsoft Project 2010 ® Tutorial 6: Sharing Project Information with Other People & Applications.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
Microsoft Excel 2003 Illustrated Complete Data with Other Programs Exchanging.
Lesson 7 – Microsoft Excel 2010 Working with Tables, PivotTables, and PivotCharts.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
With Microsoft Excel 2007Comprehensive 1e© 2008 Pearson Prentice Hall1 Chapter 4: PowerPoint Presentation GO! with Microsoft Excel ® 2007 Comprehensive.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
Microsoft ® Excel ® 2013 Enhanced Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts.
Connecting to External Data. Financial data can be obtained from a number of different data sources.
Chapter 7 Creating Templates, Importing Data, and Working with SmartArt, Images, and Screen Shots Microsoft Excel 2013.
MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty Jan 20,2016
XP Creating Web Pages with Microsoft Office
Excel Tutorial 8 Developing an Excel Application
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Tutorial 11: Connecting to External Data
GO! with Microsoft Access 2016
Microsoft Office Illustrated
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Word Lesson 7 Working with Documents
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Microsoft Office Access 2003
Microsoft Office Access 2003
Navya Thum January 30, 2013 Day 5: MICROSOFT EXCEL Navya Thum January 30, 2013.
Tutorial 7 – Integrating Access With the Web and With Other Programs
Tutorial 8 Sharing, Integrating, and Analyzing Data
Presentation transcript:

Tutorial 11: Connecting to External Data

Objectives Import data from a text file Work with connections and external data ranges Define a trusted location Understand databases and queries Use the Query Wizard to import data from several tables Edit a query New Perspectives on Microsoft Excel 2013

Objectives Import tables from Access for use with a PivotTable Manage table relationships with PowerPivot Create a Web query Retrieve financial data using an Office app Access data from an XML document Work with XML data maps New Perspectives on Microsoft Excel 2013

Visual Overview: Retrieving Text Data New Perspectives on Microsoft Excel 2013

Visual Overview: Retrieving Text Data New Perspectives on Microsoft Excel 2013

Exploring External Data Sources Data that is stored in locations other than the Excel workbook are known as data sources Data source files can be stored in a variety of formats, for example: Historical data, long-term trends (text files) Current trend information (databases) Up-to-the-minute data (the Internet) New Perspectives on Microsoft Excel 2013

Exploring External Data Sources New Perspectives on Microsoft Excel 2013

Importing Data from Text Files Simple, widely used format for storing raw, unformatted data (text and numbers) Useful for sharing data across software programs and computer systems Understanding Text File Formats Use a delimiter (space, comma, or tab) to separate columns of data Use fixed-width text file to start each column at the same location New Perspectives on Microsoft Excel 2013

Importing Data from Text Files New Perspectives on Microsoft Excel 2013

Importing Data from Text Files Starting the Text Import Wizard Determines if data is fixed-width or delimited format and, if delimited, what delimiter is used Steps of Text Import Wizard On the DATA tab, click From Text in the Get External Data group In the Import Text File dialog box, select the file and click Import; the Text Import Wizard – Step 1 of 3 opens New Perspectives on Microsoft Excel 2013

Importing Data from Text Files New Perspectives on Microsoft Excel 2013

Importing Data from Text Files Specifying the Starting Row Can specify the file type: Delimited – characters separate each field Fixed-width – fields are aligned in columns with spaces between each field Can specify starting row other than first row Indicate it data has headers Click Next button to go to Text Import Wizard – Step 2 of 3 New Perspectives on Microsoft Excel 2013

Importing Data from Text Files New Perspectives on Microsoft Excel 2013

Importing Data from Text Files Editing Column Breaks Text Import Wizard needs to know where each column begins and ends The point at which one column ends and another begins is the column break Delimited format: delimiter determines column breaks Fixed-width format: wizard guesses locations of column breaks New Perspectives on Microsoft Excel 2013

Importing Data from Text Files New Perspectives on Microsoft Excel 2013

Importing Data from Text Files Formatting and Trimming Incoming Data In Step 3 of 3, format the data in each column General format is applied by default To specify a format: Select a column in the Data preview box Click the appropriate option button in the Column Data format section Indicate if a column should not be imported New Perspectives on Microsoft Excel 2013

Importing Data from Text Files New Perspectives on Microsoft Excel 2013

Importing Data from Text Files Click Finish to import the selected data Data can then be used to create a chart New Perspectives on Microsoft Excel 2013

Exploring External Data Ranges and Connections When data is imported into a worksheet, it is stored within an external data range Each external data range is given a defined name based on the data source filename Assigned name can be edited Excel can update (refresh) data ranges and connections manually or automatically Importing data creates a connection between the workbook and the text file New Perspectives on Microsoft Excel 2013

Exploring External Data Ranges and Connections New Perspectives on Microsoft Excel 2013

Exploring External Data Ranges and Connections Excel supports other properties for external data ranges, which include: Keep the contents of the external data range current by reimporting or refreshing the data Require the user to enter a password before data is refreshed Define whether the refreshed external data range retains or replaces the formatting and layout Define whether Excel inserts or overwrites cells when new rows are added to the data range New Perspectives on Microsoft Excel 2013

Exploring External Data Ranges and Connections Viewing a Data Connection A data connection is like a pipeline from a data source to one or more locations in the workbook The same data connection can link multiple data ranges, PivotTables, or PivotCharts When you import external content Excel establishes a connection between a data range and that data source New Perspectives on Microsoft Excel 2013

Exploring External Data Ranges and Connections Viewing a Data Connection (con’t.) To see where a data connection is being used, you can view that connection’s properties New Perspectives on Microsoft Excel 2013

Exploring External Data Ranges and Connections Modifying Data Connection Properties You can modify data connection properties New Perspectives on Microsoft Excel 2013

Defining a Trusted Location Once a trusted location is defined, Excel will access the connection to the data source without prompting for confirmation that the connection is secure New Perspectives on Microsoft Excel 2013

Visual Overview: Excel Databases and Queries New Perspectives on Microsoft Excel 2013

Visual Overview: Excel Databases and Queries New Perspectives on Microsoft Excel 2013

An Introduction to Databases A database is a structured collection of data Databases are commonly used as the data sources for Excel workbooks A database is divided into separate tables Each table is arranged in columns and rows; also referred to as fields and records A field stores information about a specific characteristic of a person, place, or thing A record is a collection of fields New Perspectives on Microsoft Excel 2013

An Introduction to Databases Excel can retrieve data directly from most database programs New Perspectives on Microsoft Excel 2013

An Introduction to Databases Different tables are connected through database relationships; fields common to each table are used to match records in different table A one-to-one relationship is one in which one record in a table is matched to exactly one record from a second table A one-to-many relationship is one in which one record is matched to one or more records in a second table Relational databases are ones in which tables can be joined through the use of common fields New Perspectives on Microsoft Excel 2013

An Introduction to Databases New Perspectives on Microsoft Excel 2013

Retrieving Data with Microsoft Query Create a query to extract specific information from a database A query contains a set of criteria that specify what values to retrieve and in what order Queries are written in a language called SQL or Structured Query Language Microsoft Query uses a wizard containing a collection of dialog boxes that guide you through the entire query process New Perspectives on Microsoft Excel 2013

Retrieving Data with Microsoft Query To start Microsoft Query Wizard: Click the From Other Sources button in the Get External Data group on the DATA tab Click From Microsoft Query New Perspectives on Microsoft Excel 2013

Retrieving Data with Microsoft Query Connecting to a Data Source There are several types of data sources from which you can retrieve data You can define your own data source by clicking <New Data Source> in the list of databases Once connected to the data source, the Query Wizard – Choose Columns dialog box opens New Perspectives on Microsoft Excel 2013

Retrieving Data with Microsoft Query New Perspectives on Microsoft Excel 2013

Retrieving Data with Microsoft Query Choosing Tables and Fields Choose table and fields to include in the query New Perspectives on Microsoft Excel 2013

Retrieving Data with Microsoft Query Filtering and Sorting Data Determine whether to retrieve all records or to filter data to retrieve only records that satisfy particular criteria New Perspectives on Microsoft Excel 2013

Retrieving Data with Microsoft Query Filtering and Sorting Data (con’t) Specify how to sort the data by values in fields New Perspectives on Microsoft Excel 2013

Retrieving Data with Microsoft Query The Query Wizard – Finish dialog box provides three options: Return (import) the data into the Excel workbook Display the results of the query in Microsoft Query Save the query to a file New Perspectives on Microsoft Excel 2013

Retrieving Data with Microsoft Query Editing a Query Add new columns to a worksheet Change the sort order options Revise any filters Edit a query by editing the definition of the connection; Query Wizard will restart Modify the query definition as you walk through the steps of the wizard New Perspectives on Microsoft Excel 2013

Importing Data from Multiple Tables into a PivotTable Import multiple tables from a database directly into Excel without using Microsoft Query If tables are related through a common field, Excel will automatically include the relationship The entire table will be imported because the query is not defined New Perspectives on Microsoft Excel 2013

Importing Data from Multiple Tables into a PivotTable New Perspectives on Microsoft Excel 2013

Importing Data from Multiple Table Into a PivotTable To import a table: Click the From Access button in the Get External Data group on the DATA tab Select from the Select Data Source dialog box New Perspectives on Microsoft Excel 2013

Importing Data from Multiple Table Into a PivotTable Set up and format the PivotTable and slicer New Perspectives on Microsoft Excel 2013

Exploring the Data Model and PowerPivot The data model is a database built into Excel that provides database tools Data model database contents are immediately available to PivotTables, PivotCharts, and other Excel features The data model is constructed from different tables related by common fields Installing the PowerPivot Add-In Interact with the data model using PowerPivot – an add-in for Excel 2013 that provides tools for performing advanced data analysis and modeling New Perspectives on Microsoft Excel 2013

Exploring the Data Model and PowerPivot Installing the PowerPivot Add-In (con’t) With PowerPivot, you can: Apply filters to tables stored in the data model Rename tables and fields within the data model Define and manage the relationships among data tables joined by common fields Format data values that will be used in PivotTables and other Excel reports Create calculated fields based on data fields from multiple data sources Create advanced data structures and models New Perspectives on Microsoft Excel 2013

Exploring the Data Model and PowerPivot Adding a Table to the Data Model The POWERPIVOT tab contains the commands from working with the data model Use the Add to Data Model command to add Excel tables to the data model PowerPivot displays the contents of the data model in a separate window from the Excel workbook window New Perspectives on Microsoft Excel 2013

Exploring the Data Model and PowerPivot New Perspectives on Microsoft Excel 2013

Exploring the Data Model and PowerPivot Viewing the Data Model View the contents of a data model in Data view and in Diagram view Data view shows the contents of each database table in the data model on a separate tab Diagram view shows each table as an icon and relationships between tables are indicated by connecting arrows To see which field joins two tables, click the arrow connecting the tables New Perspectives on Microsoft Excel 2013

Exploring the Data Model and PowerPivot New Perspectives on Microsoft Excel 2013

Exploring the Data Model and PowerPivot Managing Relationships in the Data Model To match records of one table to that of other tables, create a relationship between tables When creating a relationship, identify a field in each table that will be used to match records New Perspectives on Microsoft Excel 2013

Visual Overview: Web and XML Connections New Perspectives on Microsoft Excel 2013

Visual Overview: Web and XML Connections New Perspectives on Microsoft Excel 2013

Creating a Web Query To keep an Excel workbook in sync with data store on a website, create a query that retrieves data from a webpage To create this web query, you need the URL of the page you are accessing If the file is stored on a web server, it follows the format: http://server/path/filename If the file is stored locally, it follows the format: file:///drive:/path/filename New Perspectives on Microsoft Excel 2013

Creating a Web Query To open the New Web Query dialog box, click the From Web button in the Get External Data group on the DATA tab New Perspectives on Microsoft Excel 2013

Creating a Web Query Formatting a Web Query Can format text imported from the web query Formatting is preserved when Excel refreshes data Can also retrieve the webpage data and the styles None imports text, not formatting Rich Text Format (RTF) allows for text formatting styles but not advanced features Full HTML retrieves all simple as well as advanced HTML formatting features New Perspectives on Microsoft Excel 2013

Creating a Web Query New Perspectives on Microsoft Excel 2013

Creating a Web Query Saving a Web Query Can save a web query to a permanent file that you share among other Office documents The saved connection file can be loaded in any Office program New Perspectives on Microsoft Excel 2013

Retrieving Data Using Office Apps Excel can be used with Office apps, which are small, specialized programs that enhance the features of Excel, Word, PowerPoint, and other programs in the Office suite Office apps can retrieve articles from online encyclopedias, insert maps, and retrieve timely stock quotes and financial information New Perspectives on Microsoft Excel 2013

Retrieving Data Using Office Apps Inserting and Office App Apps are downloaded from the Microsoft Office Store; most apps are free To download and use Office apps, you need an account with Microsoft Office; the account is free, requiring only a username and password to set up New Perspectives on Microsoft Excel 2013

Retrieving Data Using Office Apps New Perspectives on Microsoft Excel 2013

Retrieving Data Using Office Apps Retrieving Stock Market Data Use the Bing Finance app to import current stock market data into a workbook Provides current price quotes and news on stocks New Perspectives on Microsoft Excel 2013

Retrieving Data Using Office Apps Retrieving Stock Market Data (con’t) App shows the current price of the stock and the change in price since the market opened New Perspectives on Microsoft Excel 2013

Importing Data from XML XML is a language used to create structured documents using only text Office files are saved in an XML format called the Office Open XML New Perspectives on Microsoft Excel 2013

Importing Data from XML Each piece of data in an XMP document is contained within an element Data is marked by an opening and closing tag XML documents are structured like a tree in which elements are placed within one another, descending from a common root element The structure of the document is displayed in a data map New Perspectives on Microsoft Excel 2013

Importing Data from XML XML author can create rules specifying: Which elements are required What types of values are allowed within each element Rules are stored in a second document called the schema Not required in XML Are useful in ensuring the integrity and validity of XML data New Perspectives on Microsoft Excel 2013

Importing Data from XML Editing an XML File Before importing data, you can edit it The first step in connecting a workbook to an XML document is to generate the data map After Excel has generated a data map, you can use it to place XML content anywhere within the workbook New Perspectives on Microsoft Excel 2013

Importing Data from XML Loading an XML Data Map Commands to access the data map of an XML document are part of Excel Developer tools To work with an XML data map, you must show the DEVELOPER tab on the ribbon If the XML document has a schema file attached to it, you can load a data map without actually importing the data into the Excel workbook New Perspectives on Microsoft Excel 2013

Importing Data from XML Binding XML Elements to a Worksheet Using XML as a data source, allows you to attach (bind) elements to specific cells in the workbook New Perspectives on Microsoft Excel 2013

Importing Data from XML Importing XML Data You can import XML data directly into worksheet cells To retrieve XML data, refresh the connection to the data source Excel automatically places data in the correct worksheet cells Can automatically update XML data in a workbook to reflect changes to the source XML document New Perspectives on Microsoft Excel 2013

Importing Data from XML New Perspectives on Microsoft Excel 2013

Using Real-Time Data Acquisition Another data source: real-time data acquisition values from measuring devices and scientific equipment Usually requires purchase of an add-in to manage communication between Excel and the measuring device Excel provides the RTD function to facilitate real-time data acquisition Can save hours of data entry time New Perspectives on Microsoft Excel 2013