+ Reply to Thread
Results 1 to 9 of 9

Convert list of zip codes into ranges

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    Tx
    MS-Off Ver
    Excel 2010
    Posts
    4

    Convert list of zip codes into ranges

    I have a list of zip codes that I need to convert into ranges. Column 1 - Zip Low, Colum 2 - Zip High.

    This is a sample of my data:
    Zip Code
    19012
    19013
    19014
    19015
    19018
    19020

    This is my desired outcome:
    Zip Low Zip High
    19012 19015
    19018 19018
    19020 19020

    HELP!

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Convert list of zip codes into ranges

    Hi What is the rationale behind the Low and High values ?

  3. #3
    Registered User
    Join Date
    11-21-2012
    Location
    Tx
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Convert list of zip codes into ranges

    I am setting up territory data and our system requires the data to be loaded in that format.

  4. #4
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Convert list of zip codes into ranges

    Hi tregan,

    You must have another column that 19012-19015 groups together and different from 19018 and 19020... city name, I assume...

    Please attach a sample workbook for us to work with and several results that you want to see...

    To attach a workbook, click on Go Advanced and look for a paperclip...

    Thanks,
    Dennis

  5. #5
    Registered User
    Join Date
    11-21-2012
    Location
    Tx
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Convert list of zip codes into ranges

    zip ranges.xlsx

    Here is the file with a sample of my data. I left in the columns where I was trying to generate a range xxxxx-xxxxx then I figured I would just do text to columns to get it into the desired zip low/zip high format, but I have not been able to figure out a way to generate the range formula.

    Hopefully there is an easier way to achieve this. Thanks for your help!

  6. #6
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Convert list of zip codes into ranges

    Hi tregan,

    You are so close...

    In D2, keep 1

    In D3 and the rest, use this formula instead... =IF(C3=C2+1,D2,D2+1)

    What do you think?

  7. #7
    Registered User
    Join Date
    11-21-2012
    Location
    Tx
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Convert list of zip codes into ranges

    THANK YOU!!! That worked!

  8. #8
    Registered User
    Join Date
    08-07-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Convert list of zip codes into ranges

    I tried using the process described in the earlier threads, but I am getting repeated zip codes out of range (highlighted in yellow in the attached). Is can you suggest anything else? Thank you ! R
    Attached Files Attached Files

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Convert list of zip codes into ranges

    UPser,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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