Answered step by step
Verified Expert Solution
Question
1 Approved Answer
FIPS County Province _ State 2 5 0 0 1 Barnstable Massachusetts 2 5 0 0 3 Berkshire Massachusetts 2 5 0 0 5 Bristol
FIPS County ProvinceState Barnstable Massachusetts Berkshire Massachusetts Bristol Massachusetts Dukes Massachusetts Essex Massachusetts Franklin Massachusetts Hampden Massachusetts Hampshire Massachusetts Middlesex Massachusetts Nantucket Massachusetts Norfolk Massachusetts Plymouth Massachusetts Suffolk Massachusetts Worcester Massachusetts Atlantic New Jersey Bergen New Jersey Burlington New Jersey Camden New Jersey Cape May New Jersey Cumberland New Jersey Essex New Jersey Gloucester New Jersey Hudson New Jersey Hunterdon New Jersey Mercer New Jersey Middlesex New Jersey Monmouth New Jersey Morris New Jersey Ocean New Jersey Passaic New Jersey Salem New Jersey Somerset New Jersey Sussex New Jersey Union New Jersey Warren New Jersey Albany New York Allegany New York Bronx New York Broome New York Cattaraugus New York Cayuga New York Chautauqua New York Chemung New York Chenango New York
Clinton New York Columbia New York Cortland New York Delaware New York Dutchess New York Erie New York Essex New York Franklin New York Fulton New York Genesee New York Greene New York Hamilton New York Herkimer New York Jefferson New York Kings New York Lewis New York Livingston New York Madison New York Monroe New York Montgomery New York Nassau New York New York New York Niagara New York Oneida New York Onondaga New York Ontario New York Orange New York Orleans New York Oswego New York Otsego New York Putnam New York Queens New York Rensselaer New York Richmond New York Rockland New York St Lawrence New York Saratoga New York Schenectady New York Schoharie New York Schuyler New York Seneca New York Steuben New York Suffolk New York Sullivan New York Tioga New York
Tompkins New York Ulster New York Warren New York Washington New York Wayne New York Westchester New York Wyoming New York Yates New Y The workbook has worksheets: FIPS: for each county the worksheet has the following information: FIPS: a unique fivecharacter string to identify each county in each state State County Main: it has a wide table about the GDP of each county in each year. For example, thehighlighted cell shows the GDP of county in year Open Vxlsx
The workbook has worksheets:
FIPS: for each county the worksheet has the following information:
FIPS: a unique fivecharacter string to identify each county in each state
State
County
Main: it has a wide table about the GDP of each county in each year. For example, the highlighted cell shows the GDP of county in year
Figure
Task :
Convert data in worksheet Main from its wide form to long form using Power Query. After conversion, the structure of the long table should be:
Figure
During conversion, please make sure that FIPS is converted as textstring such as not as number such as Change column names in the converted long table as in figure above.
Power Query export the long table to a new worksheet in your workbook. Rename this worksheet as Tasks
Task :
Open Tasks Right now, it has columns as shown in Figure Add the following two columns:
State: use vlookup function to retrieve state names from worksheet FIPS based on FIPS.
County: use vlookup function to retrieve county names from worksheet FIPS based on FIPS.
Note that for each vlookup function, its fourth parameter needs to be False as the match is an exact match. After task is finished, worksheet Tasks has a structure as in Figure :
Note that for each vlookup function, its fourth parameter needs to be False as the match is an exactmatch. After task is finished, worksheet Tasks has a structure as in Figure :Year FIPS GDP State County Massachusetts Barnstable Massachusetts Berkshire Massachusetts Bristol Massachusetts Dukes Massachusetts Essex Massachusetts Frankli
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started