+ Reply to Thread
Results 1 to 6 of 6

Sequence numbers based on a Limit and Distribute :/

  1. #1
    Registered User
    Join Date
    01-06-2017
    Location
    SRI LANKA
    MS-Off Ver
    2013
    Posts
    2

    Sequence numbers based on a Limit and Distribute :/

    Hey guys.. This is a bit complex situation i have here. I have a list of numbers that can vary.
    And there's a LIMIT which can also change.
    And there's a COUNT.

    So I want to distribute the Numbers in the first list so that,
    the Number should Repeat until the COUNT is reached. But it should not distribute exceeding the LIMIT.
    If the LIMIT is exceeding, that number should be added to the next row.
    It'll all make sense with the screenshot I attached.

    distribution.jpg


    As you can see, the fist number (5) is distributed twice. But it cannot insert another 5 since that would exceed the LIMIT. But that 5 should be inserted into the row below it.


    Hope its clear.... Any idea?


    Thanx alot!
    Last edited by Aragorn911; 06-16-2019 at 09:43 AM.

  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,367

    Re: Sequence numbers based on a Limit and Distribute :/

    Welcome to the forum!

    I'll all make sense with the screenshot I attached.
    Erm ...
    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
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Sequence numbers based on a Limit and Distribute :/

    Please try at C2:L2 drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-06-2017
    Location
    SRI LANKA
    MS-Off Ver
    2013
    Posts
    2

    Re: Sequence numbers based on a Limit and Distribute :/

    OMG!!!!!!!!!
    U ARE AMAZING!!!!!!!!!!!!!!!!!
    This WORKS PERFECTLY!!!
    Though I have NO IDEA How you did it!!! ITS AMAZING!!!!!
    THANK YOU SOOOOOOOOOOOOOOOOOOOOOOOO MUCH!!!!!

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Sequence numbers based on a Limit and Distribute :/

    Happy to help

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

    Re: Sequence numbers based on a Limit and Distribute :/

    crosspost: https://www.mrexcel.com/forum/excel-...istribute.html
    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    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

+ 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. Pattern/Sequence of Numbers based on Ratio/Percentage
    By artikyulashun in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-22-2017, 06:51 PM
  2. Trying to put a max limit on a number sequence
    By gzoeller in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2015, 10:15 AM
  3. Distribute Whole Numbers Based on Percentages
    By Optimus21 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-03-2014, 07:00 AM
  4. Sequence numbers based on date and independent of column sort order
    By bedepe in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-21-2014, 07:32 PM
  5. Sequence Numbers based on a Value
    By lisa6538 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2013, 05:41 PM
  6. [SOLVED] Creating a sequence based on numbers in one column and adding "01,02..." to a new sequence
    By JCR1968 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2013, 08:06 AM
  7. Filtering based on first 2 numbers in sequence
    By alistairj in forum Excel General
    Replies: 1
    Last Post: 11-08-2006, 06:49 AM

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