+ Reply to Thread
Results 1 to 2 of 2

Expanding a range of numbers in a single cell

  1. #1
    Registered User
    Join Date
    11-22-2016
    Location
    dallas
    MS-Off Ver
    365
    Posts
    1

    Expanding a range of numbers in a single cell

    Hello forums folks, my first time posting here so be gentle.

    I am working on a project that has me stumped at the moment. I am working on a project where I was delivered a report with a range of zip codes in a single cell that applies to a specific set of information about a state. I need to feed the data into a tool (that is already created and not funded for changes) that looks at a single zip and retrieves the associated data with it. The tool needs each zip on its own line.

    For example,

    My sheet has data that was reported to me and calls out zip codes like this:

    26100-26199 West Virginia
    40000-41899 Kentucky
    43000-43399 Ohio

    Is there any easy way to expand this data into multiple cells without vb scripting? If it does require vb scripting, any suggestions (I know just enough to be dangerous but not enough to be a pro).

    The final list would look like this for example:

    26100 West Virginia
    26101 West Virginia
    26102 West Virginia
    etc... etc...

    Thank you in advance and everyone have a great turkey day!

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Expanding a range of numbers in a single cell

    In the following change the inRange to your range of cells containing the zipcodes, then change the outrow to the row you want the data to start in and the "Cells(outrow, 6)" (&7) to the column numbers you want the data in eg if the output should be in P10 onward then change the outrow to 10, and the 6 to 16, 7 to 17
    Please Login or Register  to view this content.
    OH and Take a backup before running it....just in case!
    If someone has helped you then please add to their Reputation

+ 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. Extract numbers from two cell range into a single cell.
    By Len Farneth in forum Excel General
    Replies: 5
    Last Post: 01-24-2015, 08:53 PM
  2. [SOLVED] splitting up/expanding range of numbers
    By micce08 in forum Excel General
    Replies: 9
    Last Post: 07-05-2012, 01:04 PM
  3. [SOLVED] Count occurances of numbers in a particular range in a single cell
    By dekoay in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-10-2012, 09:55 PM
  4. Expanding and Filling a Range in a Single Cell
    By AliveNThisMoment in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2011, 08:16 PM
  5. Range of numbers in single cell
    By Silverspell in forum Excel General
    Replies: 7
    Last Post: 11-10-2009, 06:39 AM
  6. expanding a range of numbers
    By chchch in forum Excel General
    Replies: 1
    Last Post: 02-28-2006, 03:55 PM
  7. [SOLVED] Range of numbers in a single cell
    By DRB in forum Excel General
    Replies: 2
    Last Post: 01-11-2006, 08:20 PM

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