+ Reply to Thread
Results 1 to 3 of 3

Building macro to split out ranges

  1. #1
    Registered User
    Join Date
    05-19-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    5

    Building macro to split out ranges

    So in the system I use accounts are set by 123-45678 format, the first 3 being the branch and the final 5 being the account. One of the more onerous tasks is to take a large base list of ranges and break it into pieces, example:
    168-00000 to 168-99999
    610-25000 to 610-29999
    611-80000 to 611-89999
    752-05000 to 752-14999
    752-20000 to 752-24999
    791-00000 to 791-18999
    791-66000 to 791-66499
    791-90000 to 791-94999


    Against this list I receive a set of ranges that I am told must either be added to the above list, or removed from the above list, example of remove:
    168-00000 to 168-25000
    791-92000 to 791-93000


    Often the lists are much larger and take a considerable amount of time to manually adjust and this leaves much room for error. Ideally I am looking to design a macro in excel that I can input in one table the base list and then in another table the add/remove list, then run the macro which will combine or remove the ranges depending on the request.

    I have written only 4-5 small macros and I am a bit lost as to where to start on this one, would anyone have any advice?

    Thanks!

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Building macro to split out ranges

    can you provide a specific example workbook to look at? (with an example of the Base list and Add /Remove list)

    Sounds like a fun one though, would like to help

  3. #3
    Registered User
    Join Date
    05-19-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Building macro to split out ranges

    I attached a sample set with just the basics.
    Attached Files Attached Files

+ 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