How To: Querying a Database in Excel

Similar documents
Safari ODBC on Microsoft 2010

Relativity. User s Guide. Contents are the exclusive property of Municipal Software, Inc. Copyright All Rights Reserved.

Insert Subtotals in Excel and Link Data to a Word Document

Working with Data in Microsoft Excel 2010

Introduction to Microsoft Access 2016

Create a PivotTable. If you prefer to design the PivotTable yourself, you can create a manual PivotTable.

Mail Merge. To Use Mail Merge: Selecting Step by Step Mail Merge Wizard. Step 1:

Microsoft Access 2010

Switchboard. Creating and Running a Navigation Form

Human Resource Management System User Guide

University of North Dakota PeopleSoft Finance Tip Sheets. Utilizing the Query Download Feature

Excel Tips for Compensation Practitioners Weeks Pivot Tables

1. Select a cell in the column you want to sort by. In this example, we will sort by Last Name.

UNIT ONE: The Worksheet. Workbook Window Excel Worksheet Fill handle Automatic fill Column widths Opening a file Saving a file

Consolidate and Summarizing Data from Multiple Worksheets

Links to Activities ACTIVITY 1.1. Links to Activities Links to Activities

Microsoft Access 2013

1. Position your mouse over the column line in the column heading so that the white cross becomes a double arrow.

Pivot Tables, Lookup Tables and Scenarios

Chapter 4. Microsoft Excel

How to Create Custom Name Badge Inserts with a Mail Merge in Microsoft Word 2007

Making Excel Work for Your Tribal Community

Open Excel by following the directions listed below: Click on Start, select Programs, and the click on Microsoft Excel.

USING ODBC COMPLIANT SOFTWARE MINTRAC PLUS CONTENTS:

Introduction. Mail Merge. Word 2010 Using Mail Merge. Video: Using Mail Merge in Word To Use Mail Merge: Page 1

Business Process Procedures

IP4 - Running reports

Training for ICDL Spreadsheets Spreadsheets 261

Tricking it Out: Tricks to personalize and customize your graphs.

Microsoft Access 2002 for Windows

To complete this workbook, you will need the following file:

1 Course Tallies and Lists with Designations

SAFARI DOWNLOAD INSTRUCTIONS

Microsoft Access 2010

SAFARI General Instructions

Introduction to Microsoft Excel 2007

Microsoft Office Illustrated. Using Tables

More Skills 12 Create Web Queries and Clear Hyperlinks

MICROSOFT EXCEL TUTORIAL HANDOUT

Microsoft Access 2013

Microsoft Access 2013

Tutorial 2. Building a Database and Defining Table Relationships

SPREADSHEET (Excel 2007)

Sage 50 U.S. Edition Intelligence Reporting Getting Started Guide

MASSTRANSIT DATABASE ANALYSIS. Using Microsoft Excel And ODBC To Analyze MySQL Data

Sort, Filter, Pivot Table

Excel. Spreadsheet functions

Importing Career Standards Benchmark Scores

HP ALM. Software Version: patch 2. Business Views Microsoft Excel Add-in User Guide

Making an entry into the CIS Payments workbook

Using Numbers, Formulas, and Functions

More Skills 11 Export Queries to Other File Formats

2. create the workbook file

Open an existing database Sort records in a table Filter records in a table Create a query Modify a query in Design view

To complete this workbook, you will need the following file:

Pulse LMS: User Management Guide Version: 1.86

Basic tasks in Excel 2013

Access Groups. Collect and Store. Text Currency Date/Time. Tables Fields Data Type. You Your Friend Your Parent. Unique information

Day : Date : Objects : Open MS Excel program. Subject : * Open Excel application. Select : start. Choose: programs. Choose : Microsoft Office

1. AUTO CORRECT. To auto correct a text in MS Word the text manipulation includes following step.

Microsoft Excel Chapter 1. Creating a Worksheet and a Chart

Access Groups. Collect and Store. Text Currency Date/Time. Tables Fields Data Type. You Your Friend Your Parent. Unique information

Excel. More Skills 11 Insert and Edit Comments. To complete this workbook, you will need the following file: You will save your workbook as: CHAPTER 2

NC User Conference Tips and Tricks for SAS FM June 16, 2009

Database Concepts Using Microsoft Access

Candy is Dandy Project (Project #12)

More Skills 12 Create Indexes and Establish a One-to-One Relationship. To complete this database, you will need the following file:

Patricia Andrada Quick Guide Excel 2010 Data Management-July 2011 Page 1

CSV Roll Documentation

download instant at

Getting Started Guide. Sage MAS Intelligence 500

You can clear the sample data from the table by selecting the table and pressing Delete.

EXCEL Using Excel for Data Query & Management. Information Technology. MS Office Excel 2007 Users Guide. IT Training & Development

Module 4 : Spreadsheets

Tutorial 2/4: Calculations & Functions. Tutorial 1/4: Getting Started. Tutorial 3/4: Statistical Analysis. Tutorial 4/4: Basic Formatting

MICROSOFT VISIO 2010

Links to Activities ACTIVITY 2.1. Links to Activities

USING MICROSOFT EXCEL 2016 Guided Project 4-3

TABLE OF CONTENTS PAGE

ADD AND NAME WORKSHEETS

TABLE OF CONTENTS. Getting Started Guide

Using Tables, Sparklines and Conditional Formatting. Module 5. Adobe Captivate Wednesday, May 11, 2016

TABLE OF CONTENTS PAGE

Quick Guide for Excel 2015 Data Management November 2015 Training:

Microsoft Excel Basics Ben Johnson

Microsoft Access 2007 Module 2

Getting Started Guide

Microsoft Excel 2010

Technology Webinar. Integrating Spreadsheets into Core Curriculum. Part 1

Content-Based Assessments

ST. JOHN FISHER COLLEGE

Excel Project 1 Creating a Worksheet and an Embedded Chart

Microsoft Office 2016 Mail Merge

Microsoft Word 2010: Using Mail Merge

In this IBM Watson User Guide, you will create dashboards and utilitize the following capabilities: Exploring, Predicting, and Collecting.

Successmaker Student and Teacher Imports

Microsoft Excel Microsoft Excel

1. Right-click the worksheet tab you want to rename. The worksheet menu appears. 2. Select Rename.

Excel Level 1

Open Microsoft Word: click the Start button, click Programs> Microsoft Office> Microsoft Office Word 2007.

Transcription:

How To: Querying a Database in Excel Document 2013 Thor Kolner. All rights reserved. Challenge: A project manager was wasting time entering information into Excel that had already been entered into his company s accounting software. Each week, he printed extensive reports, and then manually reentered the data into his workbooks. He was frustrated with the amount of his time it took to perform this manual task. Additional time was lost as he occasionally made mistakes when typing the information into Excel. Solution: Information in a database may be transferred to a new or existing Excel workbook through the use of a query. A query is initiated in Excel and draws information directly from the database into a worksheet. No additional data entry is required. In Microsoft Excel, the Query Wizard may be used to select specific rows and columns from a database table. The limited data will then be pulled directly to the workbook. If the project manager chooses to save the workbook containing a query, the workbook may be reopened at a later time and the query can be refreshed by clicking a single button. After learning how to create a query in his workbook, the project manager was able to eliminate the hours lost each week rekeying database information into Excel. The query also eliminated any chance of making a fat finger mistakes. Skills Required: A. Experience using Microsoft Excel. B. An ODBC connection to the accounting database. C. Security clearance to query data from a database into Excel. 1 P a g e t h o r k o l n e r. c o m

Try It! In the ConstructionWorksLT database, the Employee_Master tab contains basic information about each employee. Because this information is stored in a database, it may be queried into a workbook. 1. Open a new Excel workbook. Click the Data tab. 2. In the Get External Data group, click From Other Sources, and then From Microsoft Query. 2 P a g e t h o r k o l n e r. c o m

3. In the Choose Data Source window, click Excel Files*, and then click OK. 4. On the right side of the Select Workbook window, navigate to your Downloads folder. On the left side of the window, select the constructionworkslt.xls workbook, and then click OK. 3 P a g e t h o r k o l n e r. c o m

5. The Query Wizard displays. On the list of Available tables and columns, expand the Employee_Master table by clicking the plus sign (+) next to the table name. Note: If the list of Available tables and columns is blank, click Options and select the checkbox next to Tables, Views, System Tables, and Synonyms, and then click OK. 4 P a g e t h o r k o l n e r. c o m

6. Add the following columns to the list of Columns in your query by selecting the column name in the box on the left side of the window and dragging it to the box on the right. 7. In the box on the right, select the column Title and move it to the top of the list by clicking the up arrow button on the right side of the window. 5 P a g e t h o r k o l n e r. c o m

8. Click Next to advance to the Filter screen. In the Column to filter box, select Employment_Status. Only include rows where Employment_Status equals Active. 9. Click Next to advance to the Sort Order screen. In the first Sort By list, select Last_Name and Ascending. 6 P a g e t h o r k o l n e r. c o m

10. Click Next to display the Finish screen. Select the option to Return Data to Microsoft Excel, and then click Finish. 11. The Import Data window displays. Put the data in the Existing worksheet, click a cell in the worksheet where you wish the first field of the data set to display, and then click OK. 7 P a g e t h o r k o l n e r. c o m

The queried information displays in the worksheet. The information is limited to active employees and sorted by the Last_Name column. To update the information in the workbook, click the Data tab. In the Connections group, click Refresh All, and then Refresh 8 P a g e t h o r k o l n e r. c o m

Recap: A query is a method for drawing information directly from a database into an Excel worksheet. The database is called a data source in Excel. The Query Wizard guides you through the process of selecting one or more columns from a data file, filter out unwanted rows of information, and sorting the results. The workbook may be saved and then reopened at a later date. The information queried from the database may be updated at any time by refreshing the query. 9 P a g e t h o r k o l n e r. c o m