U.S. Census Bureau

Guide to the Economic Census
Guide to the
2002 Economic Census


2002 Economic Census on American FactFinder®

American Factfinder

American FactFinder (AFF) is a database system that gives you access to the same Economic Census data that are also published in PDF. The advantage with FactFinder is that you can search directly for the data you want, can display data for all available sectors at once, and can download the results for further manipulation.  AFF also provides access to all of the data published on DVD-ROM.


Building a Query

American Factfinder

Example: Select data for one industry (fast food restaurants) for all cities in a state (Ohio), rank the list by sales volume, and export the results for analysis in other software.

Selecting Economic Census data sets on AFF main page To access the Economic Census part of American FactFinder,

  • start at factfinder.census.gov
  • hover your mouse over “Data Sets” in the left column
  • select “Economic Census” in the pop-up menu.

AFF economic census page

1. Under "Start here", select "Economic-Wide Key Statistics". This file includes all the economic census data that there is for counties and places, and selecting it saves multiple steps required if we were select a file under "Detailed Statistics".

data display from Economy-Wide Key Statistics file

Data are immediately displayed, albeit only the first 100 rows.

Menu bar--Filtering rows by industry

2. Since we want to look only for one industry, put your cursor over "Filter Rows" in the menu bar to reveal the drop-down menu, then, to filter rows by industry, click on "2002 NAICS ".

Filter Rows by Industry page

3. There are multiple ways to specify the industry. The easiest is to type in key words (or even a NAICS code) in the search box. Be sure to click the checkbox next to "Use synonyms" if you are not sure of the terminology used in NAICS. Click "Search".

Industry search results

4. In this case there is only one option presented; in other cases there might be several. Highlight the industry name "722211: Limited-service restaurants", then click "Add".

Adding an industry to current industry selections

5. Once the industry appears in the Current Industry Selection box, click "Show Result".

Results for one industry

6. That gives us a one-line table, since the default for this data set is to initially show only U.S. level data. We know there is more here, so put your cursor over "Filter Rows" again, and select "by Geography".

Select Geography page--selecting a geographic type

7. To get city data, in the drop-down menu for "Select a geographic type", click on "...Economic Place". Economic Place is AFF's terminology for the places for which data are presented in the 2002 Economic Census: incorporated places with 2,500 or more inhabitants, and the town and townships of 10,000 or more in selected states.

Select Geography--state

8. Select "Ohio" in the "Select a state" menu.

Select Geography--All places in a state

9. In the city menu, one could click on and add one or more specific places, but fortunately there is a shortcut for all places in the state. Highlight "All Economic Places" and click the "Add" button.

Select Geography--Removing US line

10. Since we don't want the U.S. total in our output, highlight "United States" in the "Current geography selections" box, and then click the "Remove" button. At this point, you could add in a state total or places from additional states by repeating steps 6 to 8. Finally, select "Show result".

Results for Ohio cities

11. We want to rank the output by sales, but we need to make sure we are dealing with the right concept. Click the cryptic column heading "Sls, shps, rcpts, rev ($1,000)"

Definition for sales

12. Since this confirms that "Sls, shps, rcpts, rev" really provides the sales figures we want, we can close this window. Definitions are available for any data item by clicking on the column heading, or for any industry by clicking on the industry code.

Options--Sort Rows

13. To sort cities by rank order of sales, hover your cursor over "Options" on the menu bar, and then click on "Sort Rows".

Sort Rows dialog

14. Pull down the menu next to "Sort by" and highlight "Sls, shps, rcpts, rev ($1,000)". Click the "Descending" radio button to its right. Finally, click the "Update" button.

Ohio cities in rank order

15. This may be the display we were after. Note that the default display does not include FIPS codes for geographic areas. If we want, we can add them through the "Options" menu.

Options--Select Columns

16. Hover your cursor over "Options" then click on "Select columns".

Select Columns dialog

17. Add a check mark in the "Value" column next to the FIPS state code, the FIPS county code, and the FIPS place code. You can also uncheck columns you don't need, such as the Footnote id and the Year, or, in the Meaning column, the Type of op or tax stat code. Click the "Update" button.

Results after selecting columnns

18. FactFinder does have limited ability to perform some calculations on numbers all in the same row, like sales per establishment, but it can't do calculations across rows, like adding up the top 5 cities in the state. For this we will need to download the data to our own spreadsheet program, but that is very easy. To download the data, put your cursor over "Print/Download" and select "Download".

Print/Download -- Download

Download dialog

Nte: If you are using Internet Explorer and nothing happens at this point, click the link in the lower right of the Download screen (illustrated above) Using FactFinder with Windows XP Service Pack 2. It describes steps you can take so that I.E. will let you download files.

19. Accept the default selections to create a comma delimited (.csv) file, and click the "OK" button.

Download format page

20. If your browser is set up to allow you to open a .csv file directly into your spreadsheet software, just click the "OK" button. Otherwise, select "Save to disk", select an appropriate directory, and type in a file name that will be meaningful to you. Then simply open the file in your spreadsheet program.

Downloaded data in Excel

Note: If your browser is Internet Explorer and all of the data appear in Column A, you can parse the data into columns using steps outlined in the link on AFF's Download screen discussed above Using FactFinder with Windows XP Service Pack 2, but also summarized here: Highlight column A. From the Excel menu bar click on "Data." Select "Text to Columns." Select "Delimited." Select "Comma." Click "Finish."


Note on files downloaded from FacFinder.

.csv files downloaded from FactFinder are nicely designed to be opened in Excel, but they may present certain problems to other spreadsheets or database packages that import the data. Because numeric values are enclosed in quotes, software other than Excel may not allow calculations based on those character strings. In such cases, it may be useful to open the .csv file in Excel, change the format of data columns to numeric, and resave the file.

Contents of file IBQDownload.csv

Sector 00: All sectors: Geographic Area Series: Economy-Wide Key Statistics: 2002
"[NOTE. Data based on the 2002 Economic Census. For information on confidentiality protection, sampling error, nonsampling
"FIPS state code","FIPS county code","FIPS place code","Geographic Area Name","2002 NAICS code","Meaning of 2002 NAICS code"
"39","000","18000","Columbus city, OH","722211","Limited-service restaurants","586","428,337","113,475","11,426"
"39","035","16000","Cleveland city, OH","722211","Limited-service restaurants","317","171,352","45,203","4,742"
"39","061","99999","Balance of Hamilton County, OH","722211","Limited-service restaurants","195","156,639","39,446","4,377"
"39","095","77000","Toledo city, OH","722211","Limited-service restaurants","219","154,108","41,021","4,540"
"39","061","15000","Cincinnati city, OH","722211","Limited-service restaurants","243","138,432","36,230","3,844"

A disadvantage of using Excel to manipulate output is that that software drops leading zeros in FIPS state, county, or other geographic area codes; for example, state code 035 for Cleveland becomes just 35. To reinstate leading zeroes in Excel, right-click on the appropriate column heading, select Format Cells, then select Custom under Category in the Number tab, and then enter into the "Type" box a string of zeroes equal to the number of characters in the code -- 2 for a state code, 3 for a county code, etc.


Note on Saving queries:

FactFinder not only lets you save output, it allows you to save the query itself, so that you can pick up where you left off in a future session. This is useful if your work must be interrupted and you want to avoid the consequences of FactFinder "timing out".


save query menu

Simply select "Save Query" from the Print/Download menu, and specify a file name and location you can remember. The extension must be .sql. To load the query later, select "Load Query" from the same menu, locate the directory where you saved the .sql file, select and open it.

Saving a query is also useful if you have defined a complex query and want to be able to return to tweak it in the future, as in the specification of a long list of geographic areas. For example, if, in steps 7 to 9 above, we had wanted to specify twenty-five specific cities in a dozen states rather than just one state, the repetition would be rather tedious.

American Factfinder Ready to try it for yourself? Click on the AFF icon.