Solved

Fill continents

Posted on 2014-11-13
3
265 Views
Last Modified: 2014-11-15
I need to find a quick way to fill column A here in this online Google spreadsheet https://docs.google.com/spreadsheets/d/1hpp_HYEOVPzBnfCRZwQfpsYuAxkK8e31OVeFzAz4tsg/edit#gid=323269223 with continents for 228 countries shown in the adjacent column B.  Assistance is greatly appreciated.
0
Comment
Question by:frugalmule
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 52

Assisted Solution

by:Rgonzo1971
Rgonzo1971 earned 250 total points
ID: 40441958
Hi,

pls refer to

http://en.wikipedia.org/wiki/List_of_sovereign_states_and_dependent_territories_by_continent_%28data_file%29

it contains the iso code for continent EU = europe, OC = Oceania, AF = Africa etc.

and countries

Regards
0
 
LVL 81

Accepted Solution

by:
byundt earned 250 total points
ID: 40441975
This problem would be far easier to solve manually than with an automated tool. Having collected postage stamps in my youth, I knew every single one off the top of my head.

Because you asked for an automated solution, I downloaded data from http://www.clearias.com/countries-world-listed-continent/ to look-up the continents given the country name. I needed to use some text manipulation formulas to turn the single-column list (continent name followed by country names) into a two-column list.

After doing so, I found discrepancies between the way you listed country names and the way they were shown in the data from the web. To resolve this issue, I installed Microsoft's "Fuzzy Lookup" add-in from http://www.microsoft.com/en-us/download/details.aspx?id=15011

To use the Fuzzy Lookup add-in, I put your data in a table named tbCountries and the data from the web in a table named tbLookup. I then matched the Countries column in tbCountries with the CountryData column in tbLookup. I also checked tbLookup.ContinentData as the only output column. Using this setup, I then positioned the cursor in cell A11 of tbCountries and clicked the Go button on the add-in. The add-in then populated most of the cells in your table.

After running the Fuzzy Lookup add-in, a number of cells were left blank. Most of these were in the Caribbean or Pacific Ocean. I populated these cells manually, and colored them in yellow in the attached workbook.
CountriesBY.xlsx
0
 
LVL 81

Expert Comment

by:byundt
ID: 40441988
FWIW, you had the capital cities offset by one row in a number of places (such as Cuba) in your workbook. Drawing on my youthful experience as a stamp collector, I fixed the ones that I caught in the workbook I posted. I did not check if the remainder of the columns were also incorrectly offset--but now notice that the UTC column is also incorrect.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your app took Google’s lash recently, here are the 5 most likely reasons.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial demonstrates in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question