How to import text files to Microsoft Excel 2016:

Similar documents
Importing Local Contacts from Thunderbird

Filter and PivotTables in Excel

SPREADSHEETS. (Data for this tutorial at

Tutorial for downloading and analyzing data from the Atlantic Canada Opportunities Agency

Word: Print Address Labels Using Mail Merge

Importing Career Standards Benchmark Scores

CheckBook Pro 2 Help

CREATING CUSTOMER MAILING LABELS

HOW TO USE THE EXPORT FEATURE IN LCL

Intermediate Microsoft Excel 2010

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software.

MIS 0855 Data Science (Section 006) Fall 2017 In-Class Exercise (Day 18) Finding Bad Data in Excel

Lession #5: Adding a New Salary Using Batch Uploads

Tutorial for downloading and analyzing data from the Atlantic Canada Opportunities Agency

Introduction to Qualtrics Research Suite Wednesday, September 19, 2012

Using pivot tables in Excel (live exercise with data)

Using Pivot Tables in Excel (Live Exercise with Data)

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9

Excel Tables and Pivot Tables

HOW TO EXPORT BUYER NAMES & ADDRESSES FROM PAYPAL TO A CSV FILE

1 Introduction to Using Excel Spreadsheets

Office 2016 Excel Basics 25 Video/Class Project #37 Excel Basics 25: Power Query (Get & Transform Data) to Convert Bad Data into Proper Data Set

GiftWorks Import Guide Page 2

Excel Level 1

FACULTY AND STAFF COMPUTER FOOTHILL-DE ANZA

Access: You will have to

EXCEL BASICS: MICROSOFT OFFICE 2007

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software.

ITS Training Class Charts and PivotTables Using Excel 2007

Rev. C 11/09/2010 Downers Grove Public Library Page 1 of 41

Study Guide. PCIC 3 B2 GS3- Key Applications-Excel. Copyright 2010 Teknimedia Corporation

Using Microsoft Word. Tables

4HOnline has a powerful report system that allows you to take an existing report, customize it to suit your needs, and then save it to use again.

Power Query for Parsing Data

OPENING A LEADS.TXT FILE IN EXCEL 2010

Manual Physical Inventory Upload Created on 3/17/2017 7:37:00 AM

Excel Basics: Working with Spreadsheets

How to Import a Text File into Gorilla 4

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

EXCEL BASICS: MICROSOFT OFFICE 2010

The first time you open Word

Workshop. Import Workshop

We re going to start with two.csv files that need to be imported to SQL Lite housing2000.csv and housing2013.csv

The Excel Project: Excel for Accountants, Business People... from the Beginning Duncan Williamson

Troubleshooting in Microsoft Excel 2002

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013

Text Conversion Process

for secondary school teachers & administrators

EXCEL 2010 BASICS JOUR 772 & 472 / Ira Chinoy

Civil Engineering Computation

USING MICROSOFT EXCEL 2016 Guided Project 4-3

Excel Foundation (Step 2)

Intermediate Excel Training Course Content

This chapter is intended to take you through the basic steps of using the Visual Basic

CheckBook Help. Getting Started 5. Introduction 5. Naming Your Account 6. Your Starting Balance 7. Password Protection 8. We're Not Done Yet!

Creating a Directory with a Mail Merge from an Excel Document

Using Microsoft Excel

Using Microsoft Excel

Identifying Updated Metadata and Images from a Content Provider

WinFlexOne - Importer MHM Resources LLC

Light Speed with Excel

Query Studio Training Guide Cognos 8 February 2010 DRAFT. Arkansas Public School Computer Network 101 East Capitol, Suite 101 Little Rock, AR 72201

Welcome to Introduction to Microsoft Excel 2010

Chapter 7 Notes Chapter 7 Level 1

Chapter 7. Joining Maps to Other Datasets in QGIS

Access Intermediate

National Child Measurement Programme 2017/18. IT System User Guide part 3. Pupil Data Management

Procedure Instructions for Exporting Client list to Excel to create labels:

SharePoint 2010 Site Owner s Manual by Yvonne M. Harryman

Orientation Assignment for Statistics Software (nothing to hand in) Mary Parker,

A Step-by-Step Guide to Survey Success

Using vletter Handwriting Software with Mail Merge in Word 2007

Reference Guide. Adding a Generic File Store - Importing From a Local or Network ShipWorks Page 1 of 21

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2010

Designing & Creating your GIS Poster

Using Microsoft Excel

Data. Selecting Data. Sorting Data

Shopping Cart: Queries, Personalizations, Filters, and Settings

Guide to Importing Data

AGENT123. Full Q&A and Tutorials Table of Contents. Website IDX Agent Gallery Step-by-Step Tutorials

Introductory Excel Walpole Public Schools. Professional Development Day March 6, 2012

Advanced Excel Charts : Tables : Pivots

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.

Instructions for Using the Databases

QUICK EXCEL TUTORIAL. The Very Basics

Top 15 Excel Tutorials

A Quick Trick for Hiding Duplicate Excel Values

YGL 3.0 // The Basics

Here is an example of a credit card export; none of the columns or data have been modified.

eschoolplus+ Cognos Query Studio Training Guide Version 2.4

2. create the workbook file

Rev. B 12/16/2015 Downers Grove Public Library Page 1 of 40

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL

Version 3.1. CTF Import. Using Excel to view the Check 99 report. Jim Haywood Capita SIMS. Amended by HfL Data Management Services

13 FORMATTING WORKSHEETS

Business Process Procedures

GOOGLE APPS. If you have difficulty using this program, please contact IT Personnel by phone at

HOUR 12. Adding a Chart

Basic tasks in Excel 2013

Transcription:

How to import text files to Microsoft Excel 2016: You would use these directions if you get a delimited text file from a government agency (or some other source). This might be tab-delimited, comma-delimited or uses some other symbol as a delimiter. A comma-delimited file (or.csv extension) will open automatically in Excel if you double-click on it from File Explorer. However, if it doesn t bring all the values in correctly, you might need to use this import process. For example, if you have schools data with a field that says 17-18 for the schoolyear, Excel might interpret that as a date. Or if you have a unique identifier with leading zeros, Excel might treat that as a number and drop the leading zeros. Using this import process allows you to tell Excel exactly how to treat those things. And you will definitely need it for tab-delimited or files delimited with other symbols. For this we will use this csv file: http://mjwebster.github.io/dataj/spreadsheets/importing_sample_data.csv 1. Launch Excel and open a blank workbook 2. Go to the Data menu and on the left side of the menu bar you will see Get & Transform data options. You can EITHER click on From Text/CSV or go through the Get Data menu and choose From File.From Text/CSV. It will ask you to find you file on your computer and click Open. 3. A preview of your data will appear and at the top it will tell you that Excel has guessed what the delimiter is and that is detecting the data types for each field based on the first 200 rows. If those things are incorrect, you can change that here. At the bottom of the preview window, click on the EDIT button. You can see on this preview that it s not recognizing my column names (it merely says Column1, Column2 and then my column names look like they are the first row of data). We can fix this on the next step.

4. It will look like your data is now in Excel, but it is not! In this example, it hasn t recognized our first row as the column headers. Usually it will. The problem here is that our first column doesn t have a name/header. 5. Let s check out the data types that Excel has assigned to each column. Because Excel still thinks our header row is a row of data, it is guessing that all of our columns are text (ABC). Especially look at districtnumber and schoolnumber. Notice that these columns have leading zeros. To fix this the header row problem, go up in the Transform section of the menu bar and choose Use First Row as Headers 6. Now look at what happened to districtnumber and schoolnumber. Notice that the leading zeros are gone? And if you scroll to the right you ll see it has set some columns as numeric (123) or decimal (1.2). We don t have any date fields in here, but if we did you would see a calendar image next to the name. What you need to do with any data import (regardless of software you re using) is CAREFULLY look through all the columns and make sure nothing is going wrong. Some common problems: dates not coming in correctly; unique identifiers that lost their leading zeros; zip codes losing leading zeros (several East Coast states have leading zeros on zip codes). Some basic rules of thumb: any numeric columns that are actually codes and won t be used for math such as zip codes or unique identifiers should be set as text; Make sure date columns are set as dates otherwise they won t sort properly; Make sure numeric columns that you want to do math on are set as numeric. In this example, it is trying to convert districtnumber and schoolnumber to numeric. They are actually unique identifier codes (which we won t use for math) and they originally had leading zeros.

For most data type changes, you can click on the data type symbol on that field and it will give you a list of things you can change it to. However, with this leading zero problem, doing this will simply give you the values you see now without the leading zeros. 7. We can get the leading zeros back by going to the APPLIED STEPS window (on the right side of your screen). These are the various things we ve done to our data so far. It allows you to undo past steps, in case you made a mistake. In this case you ll see that it Changed type Click on Changed Type and you ll see an X to the left of it. It will ask are you sure you want to delete this step? Say Delete You ll see that ALL of the columns have reverted back to text (ABC). Unfortunately, now you need to go find the ones you want to set as numeric or decimal and manually convert each of those to what you want. (Using the directions in step 6)

8. Excel also gives you some other options for editing your data as part of the import. In the menu bar are options for choosing which columns to keep and which to exclude; another lets you keep or exclude certain rows. For example, let s say you re bringing in a national dataset and you only want the records pertaining to Minnesota you could use the Keep Rows option to tell it to only keep rows where a particular column has the value of MN (Or whatever the value is that indicates it s Minnesota). In this example, we ve got that first column that doesn t have a name. This is actually a column of row numbers that came with the file when I exported the data from R. It s an extraneous column we don t need. (I generally caution AGAINST excluding columns unless you are 100% certain you truly don t need it or that it s truly junk that will be useless to you. This is only something you can discern from the people you got the data from). Click on Keep Rows and you can uncheck the first column (meaning exclude it) and click OK. You ll see that column disappear from the preview. 9. Once you re happy with the settings, click the Close & Load button in the upper left corner. It will load it to the open, blank worksheet. Alternatively you can use that pull-down menu to Close and Load to and specify where you want it to go. Excel will load it into a Table which has different properties and features than what you d find in your typical Excel file. You ll see that it has colored the rows in alternating shades. The filters are automatically turned on. And there are lots of things going on in the background. 10. If you want to get it back to a more traditional Excel structure, go to the Menu bar and choose Convert to Range (it s under the Design tab and in the Tools section) You ll notice that the filters disappear, but the colors remain. If you really don t want the colors on there, highlight the whole datasheet by clicking on the triangle between the 1 and A.

And then click the Normal button in the menu bar (It s under the Home tab in the Styles section) 11. Now to go to the File menu and choose Save As Find a place to save it, give it a name that is meaningful to you, and set the file type to Excel Workbook (*.xlsx) 12. Spend a little time perusing your data and make sure everything looks the way it should. One thing to look for is to make sure the data fell into the correct columns. For example, are the values in the address field really an address? Try turning on the filters and see what values are there. For example, look at the filter for Subject are all the values M and R? If you are seeing values in the list that don t seem like they belong, it MIGHT be an import problem. Or you might just have dirty data. Regardless, now is the time to deal with it. It s especially important to check the columns on the far right because if there s an import problem it will affect all the columns to the right of whichever column the problem occurred in. So if you have 20 columns and something went wrong in column 15, then it will only be those last 6 columns that have problems.