+ Reply to Thread
Results 1 to 12 of 12

How to Auto Fill Counties by Zipcode in Excel

  1. #1
    Registered User
    Join Date
    05-27-2017
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2

    How to Auto Fill Counties by Zipcode in Excel

    Hi! I am new to this forum! I'm always on it bc I have so many questions so I finally became a legit member

    I work on quite a few reports and it would be amazing if I knew how to autofill/autogenerate counties by the column of zipcodes I have. I have seen similar questions posted about this topic, but it's been difficult for me to follow them.

    I attached same work! Feel free to take a look! Thank you!!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,825

    Re: How to Auto Fill Counties by Zipcode in Excel

    Welcome to the forum!

    Excel cannot magic the county out of thin air: you will need a reference table somewhere in the workbook.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-27-2017
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2

    Re: How to Auto Fill Counties by Zipcode in Excel

    Yes! I figured I'd need to have a sheet listing all the zipcodes and counties in the USA to have a place to autofill from; once I have this do you know what equation I would need to have?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,825

    Re: How to Auto Fill Counties by Zipcode in Excel

    Well, it will depend entirely on how you decide to set up the lookup table. Give me the first few lines of data that you will use and then I'll be able to advise.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,825

    Re: How to Auto Fill Counties by Zipcode in Excel

    Still waiting. Two or three lines of sample lookup data will suffice.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: How to Auto Fill Counties by Zipcode in Excel

    Based on your posted file:


    =VLOOKUP(D2,X2:Y50000,2,0)

    Where D2=Zipcode

    X2:Y50000 contains your "Lookup" table

    X=Zipcode

    Y=Corresponding County

    OR

    =INDEX(Y2:Y50000,MATCH(D2,X2:X50000,0))
    Attached Files Attached Files

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: How to Auto Fill Counties by Zipcode in Excel

    If you have MS Access, here is a db that you can use to look up Zip Codes. You can input either the zip code to get the city and state and county or you can enter the city, state and county to get the zip code.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  8. #8
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: How to Auto Fill Counties by Zipcode in Excel

    One way. If you have all zip code list you can download USA zip code data base & using index match formula you can get result.
    Plz refer search engine for zip code download.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,825

    Re: How to Auto Fill Counties by Zipcode in Excel

    Quote Originally Posted by alansidman View Post
    If you have MS Access, here is a db that you can use to look up Zip Codes. You can input either the zip code to get the city and state and county or you can enter the city, state and county to get the zip code.
    The zipped file causes Windows Explorer to crash here, Alan - repeatable.

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: How to Auto Fill Counties by Zipcode in Excel

    Ali--
    Interesting, but I am unable to replicate the issue. I bring up the zipped file and open it without any problem.

    Alan

  11. #11
    Registered User
    Join Date
    05-09-2013
    Location
    Dublin, OH
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: How to Auto Fill Counties by Zipcode in Excel

    Hello Alan,

    Just wanted to say thanks for this city/state/zip/lat/long/county database. It is fabulous! Found this today while googling a solution and it is super helpful. Much appreciated....

    Andy

  12. #12
    Registered User
    Join Date
    07-24-2019
    Location
    dallas
    MS-Off Ver
    10
    Posts
    1

    Re: How to Auto Fill Counties by Zipcode in Excel

    Alan- thanks for sharing this database. it is super helpful!

+ 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. Need help getting the County from a zipcode into Excel
    By webuxer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2016, 03:01 PM
  2. Matching zip codes to counties
    By kyohnke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2015, 04:30 PM
  3. Auto-Fill on Excel
    By aa1bb2cc3 in forum Excel General
    Replies: 1
    Last Post: 01-14-2015, 07:11 AM
  4. [SOLVED] Creating a function to output a region based on a list of counties
    By buckje123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2014, 09:45 AM
  5. Replies: 2
    Last Post: 08-07-2013, 09:01 AM
  6. [SOLVED] Parsing a String (zipcode) [Excel 14/2010, VBA Only)
    By lloydgodin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-12-2012, 06:17 PM
  7. [SOLVED] How do I get Excel not to erase a leading Zipcode zero (eg 0xxxx)
    By Ted W. in forum Excel General
    Replies: 1
    Last Post: 01-18-2006, 04:30 PM

Tags for this Thread

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