Results 1 to 10 of 36

Thread: Distribute ranges as per Plan

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Member ayazgreat's Avatar
    Join Date
    Mar 2012
    Posts
    86
    Rep Power
    14
    In your point of view your code works fine but it does not give correct result, if you copy my result sheet data and paste it in the front of your code result data , then you will be able to find difference, let me explain you through an example if a range start number 100101 to end range number 100105 qty = 5 and i say to distribute this range in three diferent IDs , like ID A , to give 2, ID B to 1, and ID C to 2 then above range is distributed like this

    IDs Start range End range Qty
    a 100101 100102 2
    b 100103 100103 1
    c 100104 100105 2


    It is difficult but can be coded and resolved as given result in my result sheet.

    In your code result is like

    IDs Start range End range Qty
    a 100101 100105 2
    b 100101 100105 1
    c 100101 100105 2
    Last edited by ayazgreat; 12-07-2012 at 01:04 AM.

Similar Threads

  1. Replies: 5
    Last Post: 05-28-2013, 03:00 AM
  2. Intersection of Overlapping Ranges:Space Operator
    By Transformer in forum Tips, Tricks & Downloads (No Questions)
    Replies: 0
    Last Post: 05-17-2013, 12:32 AM
  3. List all the name ranges in an excel sheet with scope
    By LalitPandey87 in forum Excel Help
    Replies: 4
    Last Post: 03-28-2012, 07:27 AM
  4. Delete Name Ranges by Scope VBA
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 12-20-2011, 03:54 AM
  5. List Unique/Common Values From Two Ranges
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 09-16-2011, 08:34 AM

Posting Permissions

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