Printer Friendly
The Free Library
14,504,670 articles and books
Member login
User name  
Password 
 
Join us Forgot password?

Prepare data for Excel: make information spreadsheet-readable.


If you feed correctly formatted data to Excel, it can handle a multitude of calculations flawlessly. But feed it a piece of "indigestible in·di·gest·i·ble  
adj.
Difficult or impossible to digest: an indigestible meal.



in
" information--that is, data not formatted to its liking--and the calculations will generate error messages DOS and Windows error messages are listed individually in this database by the message that is displayed when they occur. See also DOS error messages and Application Error.

 that looks like this:

Fortunately, Excel contains a group of functions designed to quickly and easily transform or retrieve many different kinds of otherwise incompatible information so the spreadsheet can perform its calculations flawlessly.

In a typical situation a CPA (Computer Press Association, Landing, NJ) An earlier membership organization founded in 1983 that promoted excellence in computer journalism. Its annual awards honored outstanding examples in print, broadcast and electronic media. The CPA disbanded in 2000.  is preparing a fixed-asset report and the only data available are a code that contains all the necessary information for the report--the location of the asset, its description and the year of purchase. This information can be extracted manually, or an Excel tool can reach into the code and nimbly extract and reshape just what it needs. The functions we'll be demonstrating are CONCATENATE To link structures together. Concatenating files appends one file to another. In speech synthesis, units of speech called "phonemes" (k, sh, ch, etc.) are concatenated to produce meaningful sounds. , RIGHT, LEFT, MID, ROUND, TRIM and LEN (Low Entry Networking) In SNA, peer-to-peer connectivity between adjacent Type 2.1 nodes, such as PCs, workstations and minicomputers. LU 6.2 sessions are supported across LEN connections. . Once you see them in operation, you'll surely include them in your cache of useful Excel tools.

STRING THEM TOGETHER

We'll begin with CONCATENATE. The word means to connect or link in a series.

Say you have a spreadsheet listing a company's employees, with first names in one cell, last names in an adjacent cell and titles in a third, as in:

But your report needs all that information tucked into a single cell, with a hyphen hyphen: see punctuation.  inserted between each person's title and name, such as CEO-Rose Smith. To create it, place the following formula in the cell where you want the answer displayed (E2): =CONCATENATE(D2,"-",B2," ",C2).

The formula tells Excel to place the information in this order: D2 first, then a hyphen, then B2, a space and finally C2. Added characters (hyphen, space) are enclosed in double quotes and elements are separated by commas. The result resembles exhibit 1 at right.

[ILLUSTRATION OMITTED]

KEEP IT RIGHT

The RIGHT function is used to extract selected characters from a cell. For our example we'll use a CPA preparing a fixed-asset report for a batch of laptops. All the necessary data are embedded Inserted into. See embedded system.  in codes, a variation of which looks like this: NY LAPTOP 2003.

The first two letters (NY) show the location of the asset, the next six (LAPTOP) describe the asset and the final four (2003) show its year of purchase. Exhibit 2, page 77, shows what one code in a spreadsheet looks like.

[ILLUSTRATION OMITTED]

We'll begin by extracting the year of purchase. Since the year is embedded in the right end of the code, we'll use the RIGHT function, and write a formula in the cell where we want the answer to appear (C2). The formula =RIGHT(B2,4) tells Excel to extract four characters (2003) from the right side of cell B2, creating a spreadsheet that resembles exhibit 3, below.

[ILLUSTRATION OMITTED]

To extract the computer location (NY) from the leftmost left·most  
adj.
Farthest to the left: in the leftmost lane of traffic.

Adj. 1. leftmost - farthest to the left; "the leftmost non-zero digit"
 side of the code, we'll use the LEFT function and write this formula into cell E2:

=LEFT(B2,2).

Again, the formula tells Excel to look into cell B2 and extract the first two characters (NY). The result will look like exhibit 4, below.

[ILLUSTRATION OMITTED]

To extract the identity of the asset (LAPTOP) that's embedded in the middle of the code, we'll use the MID function. But sometimes just saying it's in the middle of the code is not enough information for Excel. So we add further hints, such as this: The target code contains six characters and begins with the fourth character in the code. Putting all those hints together, we get this formula:

[ILLUSTRATION OMITTED]

The target begins with the fourth character (L) and is six characters long.

The result will resemble exhibit 5, below.

[ILLUSTRATION OMITTED]

ROUND IT OFF

Sometimes it's more important to present information in ways that make data easy to grasp and retain than to give all the exacting detail. If a report is crowded with large numbers, it's often wise to round them off. For example, our raw data show CEO (1) (Chief Executive Officer) The highest individual in command of an organization. Typically the president of the company, the CEO reports to the Chairman of the Board.  Smith earns $453,525.70 a year, but we want our report to show all salaries in thousands. So we'll create a single formula that divides the number by 1,000 and rounds it off (ROUND) to the next highest digit.

We write the ROUND formula in the cell where we want the answer to appear (C2), tell Excel that the source data are in cell B2, divide B2 by 1,000 and then round it to the 10th place (one place to the right of the decimal point (character) decimal point - "." ASCII character 46. Common names are: point; dot; ITU-T, USA: period; ITU-T: decimal point. Rare: radix point; UK: full stop; INTERCAL: spot. ):

=ROUND(B2/1000,1).

The spreadsheet should look like exhibit 6, below.

[ILLUSTRATION OMITTED]

If you wanted to round to the nearest whole number (that is, make cell B2 round to 454), use this formula:

=ROUND(B2/1000,0).

The spreadsheet now resembles exhibit 7, below.

[ILLUSTRATION OMITTED]

Excel will apply standard rounding rules: Numbers 0 to 4 will round down; numbers 5 to 9 will round up. The format of the ROUND function is:

=ROUND(number to be rounded, number of places to round the number to).

The data in the cell to be rounded can be a number or a formula. The number of places to round to can be positive, negative or zero. A positive number rounds to the right of the decimal; a negative number rounds to the left; and zero rounds to the nearest whole number.

Caveat [Latin, Let him beware.] A warning; admonition. A formal notice or warning given by an interested party to a court, judge, or ministerial officer in opposition to certain acts within his or her power and jurisdiction. : Calculations performed with ROUND may produce slightly different results from calculations per formed with numbers formatted to a specified number of digits (see "Maintain Accuracy in Excel" below).

TRIM IT TO SIZE

When you type text into a cell, inappropriate spaces sometimes are left between words. You can go into each cell and eliminate them or recruit the TRIM function with this formula, where the original text is in A2:

=TRIM(A2)

The TRIM function commands Excel to leave only one character space between words (see exhibit 8, at left).

[ILLUSTRATION OMITTED]

COUNT THE CHARACTERS

Some cells limit the number of characters you can put in them, so sometimes you need to know the number of characters in a long data string. This handy Excel formula does that for you: =LEN(B2) (as shown in exhibit 9, at left).

[ILLUSTRATION OMITTED]

With these few simple formulas, Excel can extract information or reformat (1) To change the record layout of a file or database.

(2) To initialize a disk over again.
 data so the spreadsheet can read them.

Key to Instructions

To help readers follow the instructions in this article, we use two different typefaces This is a list of typefaces. Serif
Here you can find a graphical version of this table.
  • Aldus
  • Antiqua
  • Aster
  • Baskerville
  • Bell (Monotype) Didone classification serif type deisgned by Richard Austin, 1788
  • Bembo
  • Benguiat
:

* Boldface See boldface font.  type is used to identify the names of icons, agendas and URLs.

* Sans serif Short horizontal lines added to the tops and bottoms of traditional typefaces, such as Times Roman. Contrast with sans-serif.

 type shows commands and instructions users should type into the computer and the names of files.

Maintain Accuracy in Excel

When you use ROUND, Excel performs its calculations with that rounded, less precise, number. The results, therefore, may vary slightly from calculations performed without rounding.

Exception: Excel gives users the option to choose a default that causes all calculations to be based on numbers as they are displayed. But the default carries a danger: Once you turn it on. the values of all the numbers displayed in the entire worksheet are held to those displayed values. To reset the default. go to Tools, Options. Calculations and select Precision as displayed (see screenshot See screen shot.  at right).

[ILLUSTRATION OMITTED]

JOHN DeCRISTOFARO, CPA, is finance director of a global advertising agency based in New York New York, state, United States
New York, Middle Atlantic state of the United States. It is bordered by Vermont, Massachusetts, Connecticut, and the Atlantic Ocean (E), New Jersey and Pennsylvania (S), Lakes Erie and Ontario and the Canadian province of
. His e-mail address See Internet address.

e-mail address - electronic mail address
 is john_decristofaro@hotmail.com.
COPYRIGHT 2005 American Institute of CPA's
No portion of this article can be reproduced without the express written permission from the copyright holder.
Copyright 2005, Gale Group. All rights reserved. Gale Group is a Thomson Corporation Company.

 Reader Opinion

Title:

Comment:



 

Article Details
Printer friendly Cite/link Email Feedback
Author:DeCristofaro, John
Publication:Journal of Accountancy
Date:May 1, 2005
Words:1224
Previous Article:Increased revenue by 150%.(Advertisement)
Next Article:Synchronize files between desktops and laptops.(Technology Q&A)
Topics:



Related Articles
Spreadsheets: faster, smarter.
Electronic financial tools. (modern spreadsheet packages) (Enterprise)
Taking stock on the Internet.
The power of spreadsheets. (software programs)
Add perspective to spreadsheets.(information analysis by CPAs using spreadsheet software)
How to link to Web data.(linking World Wide Web site financial information to spreadsheets)
Show-and-tell in real time: link a spreadsheet to a PowerPoint slide for up-to-the-minute visuals.
Constructing analysis of variance (ANOVA).
Using spreadsheets to conduct Monte Carlo experiments for teaching introductory econometrics. (Targeting Teaching).
Fantasy football formula virus.(Security)(Yagnuul-A virus effecting Excel files)(Brief article)

Terms of use | Copyright © 2009 Farlex, Inc. | Feedback | For webmasters | Submit articles