Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

This article contains sample data to use in a web query for Excel for Mac.

To use the data below in a web query, do the following:

  1. In Excel for Mac, create a new workbook.

  2. Go to the Data menu and choose Get External Data > Run Web Query.

    To run a web query on a Mac, go to Data > Get External Data > Run Web Query
  3. In the dialog that opens, choose either one of the sample web query .iqy files, which will make a connection back to one of the tables below.

    Sample web query .iqy files shown in the Mac Queries pane

SampleWebQuery01.iqy

United States - List of States with random values

State

Price

Hawaii

$44

California

$43

Massachusetts

$84

New York

$15

Colorado

$35

Connecticut

$69

Utah

$15

Oregon

$99

Florida

$12

Rhode Island

$17

Washington

$100

New Jersey

$68

Virginia

$18

Maryland

$89

Montana

$54

Texas

$13

Nevada

$60

Arizona

$63

Idaho

$69

Alaska

$16

Delaware

$59

Wyoming

$91

New Hampshire

$10

Vermont

$64

North Carolina

$42

South Carolina

$93

Minnesota

$12

Illinois

$42

Georgia

$79

Maine

$36

New Mexico

$11

Tennessee

$76

South Dakota

$30

North Dakota

$12

Louisiana

$95

Pennsylvania

$94

Wisconsin

$92

Nebraska

$54

Alabama

$98

Kentucky

$29

Oklahoma

$78

Michigan

$63

Iowa

$93

Missouri

$14

Mississippi

$59

Arkansas

$92

Ohio

$29

West Virginia

$23

Kansas

$25

Indiana

$15

SampleWebQuery02.iqy

United States - State Capitals

State

Abreviation

Statehood Year

Capital

Capital since

Alabama

AL

1819

Montgomery

1846

Alaska

AK

1959

Juneau

1906

Arizona

AZ

1912

Phoenix

1889

Arkansas

AR

1836

Little Rock

1821

California

CA

1850

Sacramento

1854

Colorado

CO

1876

Denver

1867

Connecticut

CT

1788

Hartford

1875

Delaware

DE

1787

Dover

1777

Florida

FL

1845

Tallahassee

1824

Georgia

GA

1788

Atlanta

1868

Hawaii

HI

1959

Honolulu

1845

Idaho

ID

1890

Boise

1865

Illinois

IL

1818

Springfield

1837

Indiana

IN

1816

Indianapolis

1825

Iowa

IA

1846

Des Moines

1857

Kansas

KS

1861

Topeka

1856

Kentucky

KY

1792

Frankfort

1792

Louisiana

LA

1812

Baton Rouge

1880

Maine

ME

1820

Augusta

1832

Maryland

MD

1788

Annapolis

1694

Massachusetts

MA

1788

Boston

1630

Michigan

MI

1837

Lansing

1847

Minnesota

MN

1858

Saint Paul

1849

Mississippi

MS

1817

Jackson

1821

Missouri

MO

1821

Jefferson City

1826

Montana

MT

1889

Helena

1875

Nebraska

NE

1867

Lincoln

1867

Nevada

NV

1864

Carson City

1861

New Hampshire

NH

1788

Concord

1808

New Jersey

NJ

1787

Trenton

1784

New Mexico

NM

1912

Santa Fe

1610

New York

NY

1788

Albany

1797

North Carolina

NC

1789

Raleigh

1792

North Dakota

ND

1889

Bismarck

1883

Ohio

OH

1803

Columbus

1816

Oklahoma

OK

1907

Oklahoma City

1910

Oregon

OR

1859

Salem

1855

Pennsylvania

PA

1787

Harrisburg

1812

Rhode Island

RI

1790

Providence

1900

South Carolina

SC

1788

Columbia

1786

South Dakota

SD

1889

Pierre

1889

Tennessee

TN

1796

Nashville

1826

Texas

TX

1845

Austin

1839

Utah

UT

1896

Salt Lake City

1858

Vermont

VT

1791

Montpelier

1805

Virginia

VA

1788

Richmond

1780

Washington

WA

1889

Olympia

1853

West Virginia

WV

1863

Charleston

1885

Wisconsin

WI

1848

Madison

1838

Wyoming

WY

1890

Cheyenne

1869

Need more help?

You can always ask an expert in the Excel Tech Community or get support in Communities.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×