Microsoft Knowledge Base |
|
Excel AppNote: Creating a Crosstab with Crosstab ReportWizard |
|
|
Last reviewed: April 3, 1997
Article ID: Q107722 |
|
The information in this article applies to:
The Application Note "Creating a Crosstab Table with the Crosstab ReportWizard" (XE0872) is now available from Microsoft Product Support Services. This Application Note demonstrates how to use the Crosstab ReportWizard to create a crosstab table that resembles the one pictured on page 349 of "User's Guide 1," version 4.0.
You can obtain this Application Note from the following sources:You can obtain this Application Note from the following sources:
THE TEXT OF XE0872
Microsoft(R) Product Support Services Application Note (Text File) XE0872: CREATING A CROSSTAB TABLE WITH THE CROSSTAB REPORTWIZARD Revision Date: 11/93
No Disk Included
The following information applies to Microsoft Excel version 4.0.
| INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY | | ACCOMPANY THIS DOCUMENT (collectively referred to as an Application | | Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER | | EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED | | WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR | | PURPOSE. The user assumes the entire risk as to the accuracy and | | the use of this Application Note. This Application Note may be | | copied and distributed subject to the following conditions: 1) All | | text must be copied without modification and all pages must be | | included; 2) If software is included, all files on the disk(s) | | must be copied without modification (the MS-DOS utility diskcopy | | is appropriate for this purpose); 3) All components of this | | Application Note must be distributed together; and 4) This | | Application Note may not be distributed for profit. | | | | Copyright (C) 1993 Microsoft Corporation. All Rights Reserved. | | Microsoft and MS-DOS are registered trademarks of Microsoft | | Corporation. | |---------------------------------------------------------------------| OverviewThis Application Note demonstrates how to use the Crosstab ReportWizard to create a crosstab table that resembles the one pictured on page 349 of "User's Guide 1," version 4.0.
Setting Up Your Sample DatabaseWhen you create a crosstab report, you must first set up a database. When you set up this database, use the following guidelines:
To create the sample database below:
2 | Automobiles East Jan $1.15 $1.19 Fred 3 | Automobiles West Jan $2.65 $1.90 Tom 4 | Trucks East Jan $1.50 $0.95 Fred 5 | Trucks West Jan $1.04 $0.95 Tom 6 | Trucks Central Jan $1.15 $0.95 Sue 7 | Automobiles East Feb $1.80 $1.36 Sue 8 | Automobiles West Feb $1.56 $0.97 Fred 9 | Trucks East Feb $1.68 $1.21 Fred 10 | Trucks West Feb $1.14 $0.73 Sue 11 | Trucks Central Feb $1.38 $0.97 Sue 12 | Automobiles East Mar $2.60 $1.75 Tom 13 | Automobiles West Mar $2.47 $1.50 Sue 14 | Trucks East Mar $1.95 $1.50 Fred 15 | Trucks West Mar $1.30 $0.90 Tom 16 | Trucks Central Mar $1.69 $1.25 Sue
Creating a Crosstab ReportOnce you've created your database, do the following to create your crosstab report:
[Chart deleted]
NOTE: The crosstab table is not automatically formatted. To format the table, you can apply an AutoFormat (from the Format menu, choose AutoFormat) or you can format it manually by choosing the appropriate commands from the Format menu. Common Crosstab Error MessagesThe following table lists some common error messages you may receive when you create a crosstab and outlines possible solutions and offers explanations for these problems.
If you get this Do the following Explanationerror message No Data Records From the Formula menu, This error can occur
Retrieved. choose Define name. In if a criteria range is
the Define Name dialog active on the
box, select Criteria worksheet and it
from the list of defined excludes the records
names, and choose the that Crosstab is
Delete button. Press OK attempting to
to return to the aggregate.
spreadsheet.
-or-
Make your criteria less
restrictive.
Invalid Value in Use one of the Microsoft This error is caused
Group Field. Excel built-in date when you attempt to
formats. group by the date when
you are using a custom
date format.
Bad File Make sure that you have Crosstab requires disk
Operation. Try write privileges to the space to write
Freeing directory from which you temporary files to. In
Additional Disk are running Microsoft version 4.0, these
Space and Excel and verify that temporary files are
Repeating there is space on this written to the
Crosstab. directory. directory from which
you are running
Microsoft Excel.
Database Cannot Verify that field names Crosstab fails if the
Contain Blank are not blank and do not field names in the
Field Names. begin with a number. database are blank or
begin with a numeric
character. This
behavior will occur
even if the data type
is text.
TO OBTAIN THIS APPLICATION NOTEThe following file(s) are available for download from the Microsoft Software Library:
~ XE0872.EXE (size: 17070 bytes)For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q119591 TITLE : How to Obtain Microsoft Support Files from Online ServicesIf you are unable to access the source(s) listed above, you can have this Application Note mailed or faxed to you by calling Microsoft Product Support Services Monday through Friday, 6:00 A.M. to 6:00 P.M. Pacific time at (206) 635-7070. If you are outside the United States, contact the Microsoft subsidiary for your area. To locate your subsidiary, see the Microsoft World Wide Offices Web site at:
http://www.microsoft.com/worldwide/default.htm |
|
Additional query words: 4.00
©1997 Microsoft Corporation. All rights reserved. Legal Notices. |