Importing Data from a Spreadsheet that contains Phone Numbers, ZIP Codes and other similar string data that looks like a number If you came to this presentation.

Slides:



Advertisements
Similar presentations
BASIC SKILLS AND TOOLS USING ACCESS
Advertisements

Importing Data from a Spreadsheet that contains Phone Numbers, ZIP Codes and other similar string data that looks like a number If you came to this presentation.
EXCEL Spreadsheet Basics
RETRIEVING DATA FROM FCC LICENSE DATABASE Steps for obtaining query results, and importing it into MS Excel Spreadsheet.
Microsoft Excel 2010 Chapter 7
Chapter 1 Databases and Database Objects: An Introduction
Integrating Access with the Web and with Other Programs.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
1 Student Registration Import Must be imported into PBA by 2/18.
SPSS 1: An Introduction to the Statistical Package SPSS Suzie Cro MRC Clinical Trials Unit.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Microsoft ® Office Word 2007 Training Mail Merge II: Use the Ribbon and perform a complex mail merge [Your company name] presents:
Pasewark & Pasewark 1 Access Lesson 6 Integrating Access Microsoft Office 2007: Introductory.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Microsoft Access – Tutorial 1 if you need to review general Microsoft Office procedures such as: menus toolbars task panes files help printing please go.
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
Ogden Air Logistics Center. Purpose of Excel2FV Many agencies produce point lists of different data (target lists, force locations, etc.) in either Excel.
Chapter 2 Querying a Database
Creating an ERD in SQL Server If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse or.
Advanced Tables Lesson 9. Objectives Creating a Custom Table When a table template doesn’t suit your needs, you can create a custom table in Design view.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Chapter 1 Databases and Database Objects: An Introduction
Creating a New Database If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse or press.
Analysing Data with Excel Importing Data from a Text File To import data from a text file: 1.Start Excel. 2.Click File, click New, click Workbook,
Creating a Web Site to Gather Data and Conduct Research.
Mail merge I: Use mail merge for mass mailings Perform a complete mail merge Now you’ll walk through the process of performing a mail merge by using the.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Web Feature Data Access Pages.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T6: Basic Skills and Tools Using.
Week 1 Introduction to Excel. The purposes of this introduction are: To remind (or introduce) you to the Excel spreadsheet format To ensure that you.
Importing Data from a Spreadsheet If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse.
Analyzing Data Using Access. Creating a new database To create a new database 1.Start Access. In the Task Pane, click Blank Database. 2.The File New Database.
TUTORIAL 9 INSTRUCTOR: HANIF ULLAH ID: OFFICE #: 2029 DATE: 22/04/2012 Introduction to MS Project 2007.
® Microsoft Office 2010 Integrating Word, Excel, Access, and PowerPoint.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
© 2010 Pearson Education, Inc. | Publishing as Prentice Hall1 Computer Literacy for IC 3 Unit 2: Using Productivity Software Chapter 1: Starting with Microsoft.
® Microsoft Office 2010 Integrating Word, Excel, Access, and PowerPoint.
Entering Data in One of the Independent Entity Tables and the Associative Entity Table of a M:M Relationship* If you came to this presentation via a web.
Creating an Access Project* If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse or.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
FIRST COURSE Integration Tutorial 2 Integrating Word, Excel, and Access.
Importing Data from a Spreadsheet If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse.
Creating a New Database If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse or press.
Creating and Editing a Web Page
Key Applications Module Lesson 22 — Managing and Reporting Database Information Computer Literacy BASICS.
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.
Creating Functions If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse or press space.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
Instructions for transferring names and addresses from a MS WORD table (previously created for printing address labels) to MS Excel for upload to SendOutCards.
To create text styles click on Home >> Tab under Change Styles
Chapter 7 Creating Templates, Importing Data, and Working with SmartArt, Images, and Screen Shots Microsoft Excel 2013.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 8 BACKNEXTEND 8-1 LINKS TO OBJECTIVES Import data from Access, a Web site, or a CSV text file.
Perform a complete mail merge Lesson 14 By the end of this lesson you will be able to complete the following: Use the Mail Merge Wizard to perform a basic.
Access Tutorial 2 Building a Database and Defining Table Relationships
Creating an ERD in SQL Server
For Letters, Labels or s Mail Merge For Letters, Labels or s.
Prepare data for importing
Performing Mail Merges
Creating a New Database
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Creating and Modifying Queries
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Microsoft Official Academic Course, Access 2016
Microsoft Excel 2007 – Level 2
Introduction to Database Programs
Introduction to Database Programs
Analyzing Data Using Access
Tutorial 8 Sharing, Integrating, and Analyzing Data
Presentation transcript:

Importing Data from a Spreadsheet that contains Phone Numbers, ZIP Codes and other similar string data that looks like a number If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse or press space bar to continue. This presentation was prepared by Professor Steve Ross, with the advice of other MIS Faculty, for use in MIS Classes at Western Washington University. Please contact Dr. Ross for permission to use in other settings..Dr. Ross The Sister Cities Database Development Project

Process Overview 1.Create the database. 2.Prepare the data for importing –Model the column headings in the Excel spreadsheet to be consistent with the physical data design. 3.Use the Management Studio import wizard to simultaneously … –Create the new table –Import the data into the table 4.Modify the table design –Using the GUI, modify the attributes’ type and size to match the physical design. Steps described in this set of slides are marked here in red. Original Data  Modified Data  “Import” Table  “Final” Table Step 2 Step 3 Step 4 Step 1: Create database

Wizards are Wonderful, but … Complications are not uncommon with import Wizards. The Wizard interprets the data according to the rules it has been programmed with. Sometimes that interpretation incorrect. One such problem can occur when the Excel data contains strings that look like numbers, but are not actually numbers. For example, telephone numbers or ZIP codes. The Wizard will define the phone number in the import table as a numeric field in the database table it creates. The phone numbers and the ZIP codes get corrupted in the process.

Solutions to the Wizard Problem Solutions to this particular problem may include… 1.Exporting the data from the Excel spreadsheet to a text file (e.g. NotePad) first, then importing the data from the NotePad document, rather than directly from the spreadsheet. 2.Modifying the data in the Excel spreadsheet so it is clearly a string. For example, you could add “x” to the beginning of every phone number or ZIP code: X If you modify the data, of course you must undo the alteration after the data has been imported. The following slides show how Method 1 might be implemented. For extra practice, you can try Method 2 on your own.

Export the Spreadsheet 2.File tab – Save As command a.Give the file a recognizable name, e.g., WorkersTab b.Save as type: Text (Tab delimited) c.If there are multiple sheets, a dialog box will ask if it is OK to save only active sheet – click OK

3.Import the data a.Right-click Database name; choose Tasks; choose Import Data…; click Next > on the splash screen b.Choose the Data Source (Flat File Source) and browse to locate the file  c.Note these settings d.click Next > twice Import the Data

3.Import the data e.Choose the destination  then click Next >

Import the Data 3.Import the data f.Select Source Table  g.Click Edit Mappings… (see next slide)

Import the Data 3.Import the data g.Click Edit Mappings…  change as req., click OK, then Next > h.{ on the next screen } Choose Run Package immediately; click Next > i.{ on the next screen } Click Finish

Import the Data 3.Import the data j.Read the report, then Close.

Verify the Results 4.Inspect the table (right-click table name, choose Select Top 1000 Rows) a.Data in expected columns b.Numeric data format, ensure no loss c.Character data, check for truncation

Analyze Data in Import Table 5.Modify the SELECT query created in Step 4 … a.Remove “TOP 1000” b.Add functions to determine maximum length of strings and maximum value of numbers: SELECT MAX(LEN([LastName])) AS [LastName],MAX(LEN([FirstName])) AS [FirstName],MAX(LEN([MidName])) AS [MidName],MAX([AnnualPay1000]) AS [AnnualPay1000],MAX(LEN([DepartmentName])) AS [DepartmentName],MAX(LEN([Rank])) AS [Rank],MAX([BudgetAuthorityIn1000]) AS [BudgetAuthorityIn1000],MAX([PersonalStaff]) AS [PersonalStaff],MAX(LEN([MailCode])) AS [MailCode] FROM [createdbexample].[dbo].[WorkersTab]

Create and Populate the Final Table As with the method demonstrated in … “ImportingData - General Case (including data with large strings and integers)” … you should then build a final table and copy the data from the temporary import table to the final table. See “ImportingData - Moving Data the Import Table to the Final Table” for details.