+ Reply to Thread
Results 1 to 15 of 15

Missing Country Code Please help me with this task

  1. #1
    Registered User
    Join Date
    08-13-2017
    Location
    Bulgaria
    MS-Off Ver
    Office 2013
    Posts
    8

    Missing Country Code Please help me with this task

    Missing Country Code
    Imagine you get a data set from a client that contains addresses from 150 countries all around the world and your task is to verify them, the data is stored in 4 fields – Address Line 1, Address Line 2, City, ZIP code. What you also have available is address verification solution for each country, but the data set does not include the country code. How would you design the logic that would process the data and use the verification components in the most efficient way?
    Hint: Running all of those 150 address verification components against each record is not considered efficient.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Missing Country Code Please help me with this task

    You get better help on your question if you add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.


    I think VLookup or Index / Match can solve that problem.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-13-2017
    Location
    Bulgaria
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Missing Country Code Please help me with this task

    Thank you for you replay oeldere, but I need just the logic for it - How would design the logic that would process the data and use the verification components in the most efficient way
    Not in excel file

    Many thanks in advance

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Missing Country Code Please help me with this task

    Not in excel file
    How would you do it if you not do it in Excel.

    You are on a Excelforum, for help with Excelproblems.

  5. #5
    Registered User
    Join Date
    08-13-2017
    Location
    Bulgaria
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Missing Country Code Please help me with this task

    Yes,
    But I need just a simple logic for it and would try to add it by myself.
    Just need the most efficient way for doing it
    And also running each record is not considered efficient.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Missing Country Code Please help me with this task

    In that case post an small Excel file, without confidential information.

    Please also add the expected result in your file.

    Then the forummembers can decide what they think is the most efficient way.

  7. #7
    Registered User
    Join Date
    08-13-2017
    Location
    Bulgaria
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Missing Country Code Please help me with this task

    Thank you again oeldere
    I just need an idea firstly for what would be the most efficient way for doing it - only the idea for now
    Thanks!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,763

    Re: Missing Country Code Please help me with this task

    Is this some sort of educational assignment?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    08-13-2017
    Location
    Bulgaria
    MS-Off Ver
    Office 2013
    Posts
    8
    Quote Originally Posted by AliGW View Post
    Is this some sort of educational assignment?
    Hello there,

    Yes it is something like that
    Thank you in advance for your help!

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,763

    Re: Missing Country Code Please help me with this task

    You need to read up on the VLOOKUP and INDEX MATCH functions to solve the problem. As this is an assignment, this is the only hint we can give you. You will need to work out the logic yourself - that is the crux of the task that has been set. Good luck!

  11. #11
    Registered User
    Join Date
    08-13-2017
    Location
    Bulgaria
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Missing Country Code Please help me with this task

    Yes thank you It's something like this
    So the lookup value should be Country Code - first column
    ZIP Code - second column(range containing the lookup value)
    City - third column( the column number in the range containing the return value)
    Address Line 1 and 2 - forth and fift column (optianaly specify TRUE for approximate match or FALSE for an exact match)
    Please let me know if I got it Right

  12. #12
    Registered User
    Join Date
    08-13-2017
    Location
    Bulgaria
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Missing Country Code Please help me with this task

    Also I think firstly I have to combine all of the duplicates City's and ZIP codes
    Please let me know if I am on right directions and if you are having any suggestions

  13. #13
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Missing Country Code Please help me with this task

    an excel file tells more than 1.000 words (in this case).

  14. #14
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,333

    Re: Missing Country Code Please help me with this task

    Hi mota,

    I think you need a database of all large city names and their zip codes than has a country code also. Then you could compare the City, Zip in your data against this database.

    I've done this for a huge genealogy database and needed to do it in many passes. Problems occur when people misspell the city or the zip. It is also confused by having multiple cities with duplicate names. Thirdly cities change their names from time to time which gives problems. Last is countries or states or zip codes change their boundaries or names.

    In general you need a good current database, something like: http://www.fallingrain.com/world/US/ to compare against.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  15. #15
    Registered User
    Join Date
    08-13-2017
    Location
    Bulgaria
    MS-Off Ver
    Office 2013
    Posts
    8
    Quote Originally Posted by MarvinP View Post
    Hi mota,

    I think you need a database of all large city names and their zip codes than has a country code also. Then you could compare the City, Zip in your data against this database.

    I've done this for a huge genealogy database and needed to do it in many passes. Problems occur when people misspell the city or the zip. It is also confused by having multiple cities with duplicate names. Thirdly cities change their names from time to time which gives problems. Last is countries or states or zip codes change their boundaries or names.

    In general you need a good current database, something like: http://www.fallingrain.com/world/US/ to compare against.

    Thank you very much for your suggestion MarvinP
    I really appreciate it : )
    Have a great day ahead!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to convert countries into country code
    By vivmishra in forum Excel General
    Replies: 3
    Last Post: 12-21-2016, 07:10 AM
  2. VBA Code A task complete Task as Code B
    By johnlara in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2016, 03:17 PM
  3. Provide country code of outlook?
    By HerryMarkowitz in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 11-19-2015, 04:48 PM
  4. Extract Country Code from raw data
    By sabubakaralis in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-03-2015, 12:10 AM
  5. GPS coordinates based on ZIP code & country
    By snb in forum Tips and Tutorials
    Replies: 0
    Last Post: 01-06-2011, 11:37 AM
  6. Add ‘country name’ column to worksheet from a list of country codes.
    By Ben Morton in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2009, 09:24 AM
  7. Find a country against code
    By tqm1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-03-2007, 05:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1