+ Reply to Thread
Results 1 to 5 of 5

How to distribute a known number evenly across a range in VBA

  1. #1
    Registered User
    Join Date
    01-08-2021
    Location
    Mexico
    MS-Off Ver
    2013
    Posts
    7

    Red face How to distribute a known number evenly across a range in VBA

    Hey guys!

    I've a problem here, I've been triying to use VBA to distribute a known number evenly across a range in VBA, this also has the restriction that the number must not be over a limit (110) and also, the numbers in the range have to be as equal as possible to each other, here is an example of the data:

    o.png

    the fact is that must be done in VBA but I'm not getting closer to the goal, any ideas?

    thanks a lot.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to distribute a known number evenly across a range in VBA

    Hello and welcome to the forum.

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-08-2021
    Location
    Mexico
    MS-Off Ver
    2013
    Posts
    7

    Re: How to distribute a known number evenly across a range in VBA

    This is an attachment of the data
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-08-2021
    Location
    Mexico
    MS-Off Ver
    2013
    Posts
    7

    Re: How to distribute a known number evenly across a range in VBA

    thanks a lot hopefully I could attach the data, i hope you can help me
    Last edited by xxkid; 01-08-2021 at 04:16 PM.

  5. #5
    Registered User
    Join Date
    01-08-2021
    Location
    Mexico
    MS-Off Ver
    2013
    Posts
    7

    Re: How to distribute a known number evenly across a range in VBA

    Quote Originally Posted by Richard Buttrey View Post
    Hello and welcome to the forum.

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.
    thanks a lot hopefully I could attach the data, i hope you can help me

+ 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. [SOLVED] How to evenly distribute work based on cell values and number of employees?
    By AccountingJ in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-09-2019, 12:50 PM
  2. Replies: 1
    Last Post: 06-19-2017, 04:13 PM
  3. Replies: 12
    Last Post: 02-12-2017, 06:09 PM
  4. Evenly distribute a number across several cells
    By gbursson in forum Excel General
    Replies: 2
    Last Post: 02-18-2015, 05:51 AM
  5. Distribute Data Evenly
    By sohlican in forum Excel General
    Replies: 13
    Last Post: 09-19-2014, 07:37 PM
  6. Evenly distribute numbers
    By captain118 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2013, 01:27 AM
  7. trying to distribute evenly between number of people
    By magleremm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-11-2012, 09:41 PM

Tags for this Thread

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