+ Reply to Thread
Results 1 to 4 of 4

Spreding a number wholly and equally over a fixed number of cells

  1. #1
    Registered User
    Join Date
    11-12-2019
    Location
    DXB
    MS-Off Ver
    MS OFFICE MAC
    Posts
    1

    Spreding a number wholly and equally over a fixed number of cells

    Hi Guys,

    I was hoping someone one can assist I'm looking to build a calculator that will split a fixed delivery quantity over 24 months to the nearest whole number and leave the remaining balance to be paid on the last month.

    I have a attached an example of what I've done so far. but as an overview.

    The problem is I can't get it to evenely spread over 24 months where the qty owed at the end of month 24 = 0

    If someone can assist or is capable of building what I'm looking for im happy to retain services. Only if you teach me at the same time
    Attached Files Attached Files

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

    Re: Spreding a number wholly and equally over a fixed number of cells

    Welcome to the forum.

    Your last sentence suggests that you are offering payment: this is a free forum, so that will not be allowed. If you want to pay someone to complete a big project for you, we have the Commercial Services section. However, I'm not sure this is a big project.

    Whoever helps you will explain the solution if you want - that will be free as well!

    Where in your attachment have you mocked up the results you are aiming for?
    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 Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Spreding a number wholly and equally over a fixed number of cells

    Something's gotta give - unsure what your preference is. Part of the problem is that you want this spread 'evenly' over 24 periods - except the last one - which could cause some problems.

    You could just round the number, but as you are experiencing, you could send everything well before the 24th (or even the 23rd) shipment, or you could have a rather large 'catch-up' shipment at the end.

    You could use FLOOR, instead of ROUND, which would mean you have a larger final shipment.

    Personally, I would try to have a somewhat even distribution and would use a formula like this:
    C14: =FLOOR(C5/24,1)
    C15: =B7-C14
    D14: =FLOOR(C15/(24-COLUMN(A:A)),1) then drag to column Z
    D15: =C15-D14 then drag to column Z

    Not sure how you want to handle the remainder. You could change Z14 to:
    =ROUND(Y15/(24-COLUMN(W:W)),0) if you want to just round (which could mean you sometimes ship more and sometimes less than what was paid for)
    or
    =Y15 if you can ship non-whole numbers
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  4. #4
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Spreding a number wholly and equally over a fixed number of cells

    Hi -

    I just made a few simple modifications to your spreadsheet:

    1. The formula Row 7 was hard coded to divide the Total Owed Amount (cell B7) by 24. I changed that to =$B$7/$C$4. That way you can change the number of months in cell C4 and it will recalculate the monthly shipment.

    2. The Balance, in Row 9 was taking the previous months balance and subtracting the rounded amount, not the Quantity to Deliver. That was one of the reasons you were getting negative numbers at the end. So, I changed that formula to subtract the actual delivered amount from the previous balance. That formula looks like:

    =C9-D10

    3. Finally, instead of just putting the rounded amount in the Quantity to Deliver, I added an IF() statement to check and see if the previous months balance is less than or equal to the monthly, rounded shipment amount. If the remaining balance of the previous month is less than the rounded amount to ship, it just uses whatever amount is left over. That formula looks like this:

    =IF(C9<=D8,C9,D8)

    I have attached your modified spreadsheet.

    Hope this helps.
    Attached Files Attached Files
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

+ 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. Need Help in Dividing Number Equally
    By Shakil777 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 01-18-2016, 08:26 AM
  2. How to add group number to equally divide number of rows
    By neualex in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2015, 03:34 PM
  3. Formula to copy a number from a cell and make the number fixed
    By Brycker in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-29-2015, 01:59 PM
  4. [SOLVED] Split a number equally to multiple cells
    By zottiri in forum Excel General
    Replies: 30
    Last Post: 01-13-2015, 03:42 AM
  5. Complex query: mean with respect to time rather than fixed number of cells
    By thoabb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2014, 07:30 AM
  6. [SOLVED] Define a range of fixed number of columns, but unlimited number of rows
    By ccopac in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-22-2012, 02:23 PM
  7. Replies: 4
    Last Post: 03-10-2009, 11:42 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