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

Spreadsheet, meet database - database, meet spreadsheet.


EXECUTIVE SUMMARY:

* LINKING A DATABASE and a spreadsheet allows you to perform complex data analyses far more easily than if you used only one application. In this case, we link Microsoft's Access and Excel's PivotTable.

* ALTHOUGH IT'S POSSIBLE to perform some of these functions in Access alone, the process is far more difficult.

* IN ADDITION, ACCESS can perform these functions using crosstabs, which is similar to PivotTable with one big but: Crosstabs can look at only one variable at a time; with PivotTable, however, users can look at as many variables as a spreadsheet contains with just the click of a mouse.

* ANOTHER PLUS: Most accountants feel more comfortable working with spreadsheets because they're more familiar with them.

* IF THAT'S NOT ENOUGH, by linking the two files--the data file in Access to the one in Excel--any change you make in the original Access data will flow through to the Excel file.

How to get two programs to work as a team.

Just as two heads are better than one, so are two software applications working together. In tandem Adv. 1. in tandem - one behind the other; "ride tandem on a bicycle built for two"; "riding horses down the path in tandem"
tandem
, some programs can do things that are hard, if not impossible, to do when they're running alone. That's why software suites--a collection of cooperative applications--can boost office productivity.

To demonstrate the power of office suites as a way to encourage you to broaden your technical skills, this article will show you how to take database information and link it to a spreadsheet's supercalculation power so you can better interpret data.

While the process may appear difficult--and even a bit esoteric--it's actually quite easy to do. Once you learn the technique, you'll find it a versatile and practical tool.

The fundamental job of a database application is to warehouse information--especially diverse information--and then enable users to access and reconfigure it in nearly any customized order. Although spreadsheets can do that job, too, they can't do it quite as well or as easily as databases. But then, a spreadsheet isn't a database; it's a robust, multifaceted mul·ti·fac·et·ed  
adj.
Having many facets or aspects. See Synonyms at versatile.

Adj. 1. multifaceted - having many aspects; "a many-sided subject"; "a multifaceted undertaking"; "multifarious interests"; "the multifarious
 calculator and data analyzer that incidentally can perform some database functions. So linking the two applications produces one powerful tool. Microsoft's finance department applies this same technology to post its financial information to both its staff and to the public; see "Accounting--The Digital Way," JofA, May99, page 99.

In this tutorial, functions of a Microsoft Access A database program for Windows, available separately or included in the Microsoft Office suite. Access is programmable using Visual Basic for Applications (VBA). Access can read Paradox, dBASE and Btrieve files, and using ODBC, Microsoft SQL Server, SYBASE SQL Server and Oracle data.  database and Excel PivotTable are paired. (For more information about using the PivotTable, see "Add Perspective to Spreadsheets," JofA, Dec.98, page 91.)

EXAMINING FIXED ASSETS fixed assets nplactivo sg fijo

fixed assets nplimmobilisations fpl

fixed assets fix npl
 

Let's say you keep all the data about your organization's fixed assets in an Access database that includes, among other things, descriptions of the assets, their cost and depreciation and maintenance history. If you want to locate all the listed assets that are 75% depreciated Depreciated may refer to:
  • Depreciation, in finance, a reference to the fact that assets with finite lives lose value over time
  • Depreciated is often confused or used as a stand-in for "deprecated"; see deprecation for the use of depreciation in computer software
, Access can do it, but it's a bit complicated: First you have to write queries in Access, which is a little difficult. (Query writing will be the subject of a forthcoming Technology Workshop article.) Excel's PivotTable not only is easier to use but it's more adroit. In addition, financial professionals use Excel a lot more often, so they are handier with spreadsheets than with databases.

To demonstrate the real power of this Access-Excel link, we're going to complicate the scenario. In addition to locating all the listed assets that are 75% depreciated, we now also want to see the total acquisition cost of all assets bought during the year, by month, and the depreciation taken on those assets.

Access experts may object at this point, claiming that Access can do those jobs, too. And it can, with a function called crosstabs, which is similar to a PivotTable, with one big but: Crosstabs can look at only one variable at a time; PivotTables can look at as many variables as a spreadsheet contains with just the click of a mouse.

By linking Access to Excel's PivotTable, you not only will use a spreadsheet tool you're probably more familiar with and that is easier to use, you now will have a powerful function that lets you manipulate raw data in multiple ways and view the information from many different perspectives--all in one operation. Even better: You can easily expand the examination with no added effort and calculate, say, the total expense for those fixed assets and even the percentage of each item to the total expense.

If that's not enough, by linking the two files--the data file in Access to the one in Excel--any change you make in the original Access data will flow through to Excel.

GETTING UNDER WAY

To begin the exercise, open Excel and start the PivotTable wizard by clicking on Data in the toolbar A row or column of on-screen buttons used to activate functions in the application. Many toolbars are customizable, letting you add and delete buttons as required. Toolbars may be fixed in position or may float, which means they can be dragged to a more convenient location in the  and then PivotTable Report from the dropdown box (see exhibit 1, page 34). Since the goal is to link to data from an Access file, select External Data Source. That will evoke a screen asking you to identify the location of the Access data (see exhibit 2, page 34).

When you click on the Get Data button in exhibit 2, a new screen, Choose Data Source (see exhibit 3, at left) will appear. Under the Database tab, click on MS Access 97 Database*, for that is the ODBC (Open DataBase Connectivity) A database programming interface from Microsoft that provides a common language for Windows applications to access databases on a network.  driver that reads the data in the PivotTable. If you have any previously saved MS Query files that you want to use, those queries will be listed under the adjacent Queries tab.

The next screen that appears selects the Access database file that contains the information you want (see exhibit 4, at left).

Highlight the name of the file and click OK, evoking a screen that invites you to choose the columns, or fields of data, that you want to include in the PivotTable (see exhibit 5, at left). In the Available tables and columns box, you'll see all the tables and queries (called views in some database programs) available for the file you selected. To view the columns for data in a table or query, click the + sign beside the table or query in the Available tables and columns box. By clicking on the + sign next to Assets (top image), the Available tables and columns box will show the contents of Assets (bottom image).

To see the data stored in a table or query, select the column and press the Preview now button. The data will appear in the Preview of data in selected column box. To include an available column, double-click it or use the > button to move it to the Columns in your query box. To change the order of the columns, click a column to move up or down, and then click the buttons to the right of the box. We select AssetDescription, DateAcquired and PurchasePrice (note that all the names All the Names (Portuguese: Todos os nomes) is a novel by Portuguese author José Saramago. It was written in 1997 and published in English in 2000 in an award winning translation by Margaret Jull Costa.  are one word--a database convention).

FILTERING THE DATA

Click Next and the following screen invites you to filter the data to specify which rows to include in your query (see exhibit 6, at left). In this example, we want to select all assets with a purchase price greater than $2,000. To accomplish that, select a field from the Column to filter list--in this case, PurchasePrice. In the Only include rows where group, select an operation from the list on the left--in this case, is greater than and 2000. To filter the data further, click And or Or and repeat the process.

The above step isn't always necessary because the Excel PivotTable can hold a huge amount of information. However, filtering out unneeded information--such as limiting sales for just one month instead of bringing in the whole year--not only makes a PivotTable smaller, and therefore able to calculate faster, but also simplifies building a PivotTable.

Click Next to bring up the Query Wizard--Sort Order (see exhibit 7, at left), which lets you specify how you want to sort your data. To sort, choose a column in the Sort by box and then click the sort order that you want, Ascending ascending /as·cend·ing/ (ah-send´ing) having an upward course.

ascending

progressing to higher levels, usually used in reference to the nervous system.
 (A-Z) or Descending (Z-A Z-A Zero All ). You can have up to three sort levels. If you don't wish to sort, click Next, bringing up the Query Wizard--Finish, which presents some options on the screen (see exhibit 8, page 38). The relevant one: If you want to use Microsoft Query to make further changes to your query, click on View data or edit query in Microsoft Query. If you are familiar with the Query Designer in Access, then using MS Query will come naturally. It is Access Query Designer's little brother and has almost the same look and feel. If you have never used Access or never have written a query, then MS Query is still useful to you because it can introduce you to the world of query design in a format that is a lot less intimidating in·tim·i·date  
tr.v. in·tim·i·dat·ed, in·tim·i·dat·ing, in·tim·i·dates
1. To make timid; fill with fear.

2. To coerce or inhibit by or as if by threats.
 than the Access Query Designer.

When ready, click Finish. Now we have finally reached our goal: The data are in the PivotTable cache (temporary memory) and are ready for use. See the top of exhibit 9--page 38. Depending on how many data are being retrieved and the speed of your computer, this could take some time. Once the data are retrieved, the text next to the Get Data button will change to read Data fields have been retrieved. At this point, Excel takes over and treats the data just as if it had gotten the information from another Excel workbook work·book  
n.
1. A booklet containing problems and exercises that a student may work directly on the pages.

2. A manual containing operating instructions, as for an appliance or machine.

3.
. You then use the PivotTable Wizard (See the bottom of exhibit 9.) to create the PivotTable and perform your analyses.

PivotTables are powerful analytical tools. Users can make them more powerful if they know how to retrieve data from data sources other than another Excel spreadsheet. While this article only covers the link to one such source--a small local Access database--the same basic steps can be used if the data source is a million-record SQL SQL
 in full Structured Query Language.

Computer programming language used for retrieving records or parts of records in databases and performing various calculations before displaying the results.
 database residing on an SQL server An earlier relational DBMS from Sybase and from Microsoft. Sybase introduced SQL Server in 1988 for various Unix versions. In that same year, with help from IBM, Sybase created an OS/2 version that Microsoft licensed and branded as Microsoft SQL Server.  halfway around the world.

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. : If at this point you cannot access the database, it's likely that your computer is missing one or two software files--either a special ODBC (open database connectivity See ODBC.

(standard, database) Open DataBase Connectivity - (ODBC) A standard for accessing different database systems. There are interfaces for Visual Basic, Visual C++, SQL and the ODBC driver pack contains drivers for the Access, Paradox, dBase, Text, Excel and Btrieve
) file that allows Excel and Access to connect or the Microsoft Query file that gives PivotTable the power to query Access. Both are installed only if, during the initial suite loading, you opted for a custom, rather than a typical, installation.

What to do: If you use the Office 2000 version and you get an error message at this point, you'll probably be asked if you want to install the missing files and then instructed to insert the Office 2000 CD disk. Follow the instructions for an automatic installation. If you use Office 97, you need to add the component manually by initiating setup again.

PivotTable Tips for Dealing With External Data

When you're working with external data in a PivotTable, consider these guides (see exhibit 10, below):

* Click on the option Save data with table layout. If you don't save a copy of the external data and you later want to analyze or customize your PivotTable, you must first click Refresh (1) To continuously charge a device that cannot hold its content. CRTs must be refreshed, because the phosphors hold their glow for only a few milliseconds. Dynamic RAM chips require refreshing to maintain their charged bit patterns. See vertical scan frequency and redraw.  Data on the PivotTable toolbar to reattach Re`at`tach´   

v. t. 1. To attach again.
 the external data to the PivotTable.

* Clear the Enable drilldown box to prevent showing detail when you double-click a cell in the data area of a PivotTable.

* If you use an external database that requires a password, select the Save password check box to store the password as part of the query. So when you update your PivotTable, you will not need to reenter re·en·ter also re-en·ter  
v. re·en·tered, re·en·ter·ing, re·en·ters

v.tr.
1. To enter or come in to again.

2. To record again on a list or ledger.

v.intr.
 the password.

* When you click Finish in the PivotTable wizard to create a PivotTable based on external data, the query for the external data can run in either of two ways: It can run in the background so that you can continue working in Microsoft Excel (tool) Microsoft Excel - A spreadsheet program from Microsoft, part of their Microsoft Office suite of productivity tools for Microsoft Windows and Macintosh. Excel is probably the most widely used spreadsheet in the world.

Latest version: Excel 97, as of 1997-01-14.
 while the external data is being retrieved, or it can run while you wait until retrieval of the external data is complete. To run a PivotTable query immediately, clear the Background query check box.

An Invitation

If you have a special how-to technology topic you would like the Journal to consider for inclusion in this series, or an application shortcut (1) In Windows, a shortcut is an icon that points to a program or data file. Shortcuts can be placed on the desktop or stored in other folders, and double clicking a shortcut is the same as double clicking the original file.  you devised and would like to share with other professionals, contact Senior Editor Stanley Zarowin. His e-mail address See Internet address.

e-mail address - electronic mail address
 is zarowin@mindspring.com.

E PHILIP HAASE, 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. , MCSD See Microsoft certification.

MCSD - Microsoft Certified Solution Developer
, MCT See Microsoft certification. , is president of Dynamic Developers Group, a software consulting firm Noun 1. consulting firm - a firm of experts providing professional advice to an organization for a fee
consulting company

business firm, firm, house - the members of a business organization that owns or operates one or more establishments; "he worked for a
 headquartered in Metairie, Louisiana Metairie (local pronunciations /ˈmɛtəɹi/, /ˈmɛtɹi/) is a suburb of New Orleans. . His e-mail address is fphaase@neosoft.com and his Web site is at www.haasefam.com.
COPYRIGHT 1999 American Institute of CPA's
No portion of this article can be reproduced without the express written permission from the copyright holder.
Copyright 1999, 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:Haase, F. Philip
Publication:Journal of Accountancy
Geographic Code:1USA
Date:Dec 1, 1999
Words:2064
Previous Article:Data conferencing: meet face-to-face - remotely.
Next Article:Opportunity knocks: CPA ElderCare Services.
Topics:



Related Articles
A spreadsheet update: the battle of the spreadsheets intensifies.
Electronic business tool. (spreadsheet software) (includes an article on personal information management systems) (Buyers Guide)
Help for number crunchers. (TM/1 Spreadsheet Connector) (Software Review) (Brief Article)
Spreadsheets: faster, smarter.
When is a database not a database? (when it's a spreadsheet.)
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)
Spreadsheet cheats come to the rescue.(TECHNOLOGY)(Risk Integrated's Enterprise Spreadsheet Platform )
Cut and paste errors a thing of the past with new spreadsheet system.(TECHNOLOGY)

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