USE CASE · IN YOUR BROWSER

Create an Excel list of the 50 US states with FIPS codes

AIVane downloads the state code list published by the U.S. Census Bureau and writes one row per state to an Excel file: state name, postal abbreviation, FIPS code and ANSI code. The codes are stored as text, so leading zeros survive and the file joins cleanly with other data. The District of Columbia and the territories are left out. Our test produced 50 rows, from Alabama to Wyoming. Source: U.S. Census Bureau.

How it works

  1. Copy the states list. Choose Try it in your browser. The automation downloads the Census state code list; no browser is opened.
  2. Set the limit. Leave Maximum states at 50, or enter a lower number from 1 to 50.
  3. Use it as a lookup. Download the workbook and use the FIPS or abbreviation column as the key in your own spreadsheets.

Try it on the practice site

  1. 01

    Open list of us states excel

    After you sign in from the Try it link, the automation is in My automations with three steps: fetch the Census state code list, select state records and save the Excel reference.

    The automation list of us states excel in My automations: Ready, 3 steps, Fetch the Census state code list, Select state records and Save the Excel reference
  2. 02

    Run it

    Choose Run. Census state list URL is the Census file, Maximum states is 50 and Excel output file is us-states.xlsx. Choose Confirm and run.

    The Run automation dialog in AIVane Cloud with the Census state list URL, Maximum states 50 and Excel output file us-states.xlsx and the Confirm and run button
  3. 03

    Download us-states.xlsx

    Our run took 28 seconds and wrote 50 rows with state, postal_abbreviation, fips_code and ansi_code. The first row was Alabama, AL, 01, 01779775, with both codes kept as text.

    Run details of the succeeded cloud run list of us states excel: 28 seconds, Outputs lists us-states.xlsx with a Download button

How other methods compare

Typing the list yourself
Fast for a dozen states, error-prone for fifty, and easy to lose the leading zeros.
Copying from a web table
Tables on websites often mix in territories and extra columns.
The Census file itself
It is pipe-delimited text. The automation turns it into a ready workbook.

Frequently asked questions

Why are the codes text?

So 01 stays 01. Excel would otherwise turn it into 1 and break lookups.

Does it include DC or territories?

No. The District of Columbia and the territories are excluded before the limit is applied.

Where does the data come from?

From the public state code list of the U.S. Census Bureau. Please keep that credit if you share the file.

Can I change the order or the columns?

The order is the Census order, which is alphabetical. Ask AIVane to adapt the steps for other columns.

Can I run it on a schedule?

Running on a schedule in AIVane Cloud is part of Pro and Business, and you can create the schedule in your browser. The cloud schedule limit is 5 on Pro and 20 per organization on Business. Free and Starter can try scheduling: 1 cloud schedule turned on and up to 3 scheduled runs within 7 days of the first scheduled run. Each trial run uses your remaining cloud minutes; on Free, that is the one 10-minute AIVane Cloud trial.

Is it free?

Free includes 3 saved automations, local runs of up to 15 minutes each and a one-time 10-minute AIVane Cloud trial. Our run used 34 seconds of cloud time.

Want a hand with this?

Our first users can ask for hands-on help: one website task, one sheet, and a week of watching it run.

Get help automating this task

Last verified 2026-11-28 with the AIVane web workspace at app.aivane.net (production server of 2026-11-28).