220 likes | 343 Vues
This guide outlines effective methods for importing text files into MS Excel spreadsheets, specifically tailored for research teams. It emphasizes the importance of avoiding manual entry to minimize typing errors when dealing with data from various sources such as GPS, data loggers, and environmental sensors. The document also introduces the Text Import Wizard feature in Excel, providing step-by-step instructions on handling delimited files, and illustrates functions like CONCATENATE(), LEFT(), RIGHT(), and VALUE for data manipulation. Streamlining data import processes enhances accuracy and efficiency.
E N D
Research Methods Group Importing text files in an MS Excel spreadsheet Wim Buysse – ICRAF-ILRI Research Methods Group August 2004
Research Methods Group Importing text files: example • GPS
Research Methods Group Importing text files: example • Data loggers, example weather station
Research Methods Group Importing text files: example • Data loggers, example light intensity meter
Research Methods Group Importing text files: example • Data loggers, example CO2 and temperature meter
Research Methods Group Importing text files: example • Data loggers, example soil moisture logger
Research Methods Group Importing text files: example • Data loggers, example rain gauge
Research Methods Group Importing text files: example • Data loggers, example ICP mass spectrometer
Research Methods Group Importing text files: example • Data loggers, example harvesters
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 • example = logging data from GPS onto a laptop
Research Methods Group Avoid entering manually • Example of software (for logging GPS data)
Research Methods Group Text data files • Result of logged data is quite often in ASCII text format
Research Methods Group Importing in MS Excel 2000 • File => Open gives you the “Text Import Wizard”
Research Methods Group 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 • More options in the third 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 • CONCATENATE() for merging text from several cells
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 Some functions • It is possible to superpose a function on a function