importing text files in an ms excel spreadsheet wim buysse – icraf-ilri research methods group...
Post on 20-Dec-2015
214 views
TRANSCRIPT
Importing text files
in an MS Excel spreadsheet
Wim Buysse – ICRAF-ILRI Research Methods GroupAugust 2004
Research Methods Group
Importing text files: example• Data loggers, example CO2 and
temperature meter
Research Methods Group
Avoid entering manually• Reading data from device and next typing in
spreadsheet = increasing chance of typing errors
• Reading data from device on the field, writing on a piece of paper, travelling all the way back to the office and typing in spreadsheet (often some days later) = almost impossible not to make some mistake
Research Methods Group
Avoid entering manually• RULE = use cables and software to transfer data
from device to computer
Research Methods Group
• example = logging data from GPS onto a laptop
Importing in MS Excel 2000• In this example, fields to import are separated by
commas. They are “delimited”
Research Methods Group
Importing in MS Excel 2000• Choose the comma as delimiter in the second
screen
Research Methods Group
Importing in MS Excel 2000• The data are imported in cells of an Excel spreadsheet.
Not a single typing error has been made!
Research Methods Group
Some functions
• LEFT(); RIGHT() or MID() to extract a fixed number of characters from a specific position
Research Methods Group
Some functions
• Result of
=RIGHT(B2, 3)
Is still text• Using the VALUE
function turns it
into figures
Research Methods Group