+ Reply to Thread
Results 1 to 18 of 18

Distribute automatically and equitly on EXCEL, in a certain number of cells, the result o

  1. #1
    Registered User
    Join Date
    05-03-2023
    Location
    Panama
    MS-Off Ver
    2019
    Posts
    10

    Distribute automatically and equitly on EXCEL, in a certain number of cells, the result o

    Ok this is my problem.



    I have the an total shipping cost( in this example 14.6) that normallys is a decimal number. This number have to be divide by the quantity of products that cames in a box( in this example 6). Giving a result of 2.433333



    I have to complete the Shipping cost column equally with the result already mentioned. But by only taking into account the rounded number 2.43 (because we are talking about money) it leaves me out the decimal number 0.02, which in this case could not leave out since we are talking about money.



    Therefore the sum of the shipping cost gives me 14.58 and not 14.60



    What would be the formula that I should implement to solve this problem?
    Attached Files Attached Files
    Last edited by memo08; 05-04-2023 at 01:01 AM. Reason: [SOLVED]

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

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook. Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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
    Registered User
    Join Date
    05-03-2023
    Location
    Panama
    MS-Off Ver
    2019
    Posts
    10

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    i just attached the file and erased the screenshot

  4. #4
    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,978

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    Unclear - is this what you want?

    =ROUND(SUM(C2:C7),1)

  5. #5
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    you give everybody the same and if there is a remaining , give it to those with the greatest cost.
    Attached Files Attached Files
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  6. #6
    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,978

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. As you are new here, I shall do it for you this time: https://www.mrexcel.com/board/thread...mbers.1236263/)

  7. #7
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    This formula is rather long:
    PHP Code: 
    =ROUNDDOWN($A$12/$B$12,2)+IF(B2=MAX($B$2:$B$7),ROUNDDOWN(ROUND($A$12-$B$12*ROUNDDOWN($A$12/$B$12,2),2)/COUNTIF($B$2:$B$7,MAX($B$2:$B$7)),2),0)+IF(AND(COUNTIF($B$2:$B2,MAX($B$2:$B$7))=1,B2=MAX($B$2:$B$7)),ROUND(ROUND($A$12-$B$12*ROUNDDOWN($A$12/$B$12,2),2)-COUNTIF($B$2:$B$7,MAX($B$2:$B$7))*ROUNDDOWN(ROUND($A$12-$B$12*ROUNDDOWN($A$12/$B$12,2),2)/COUNTIF($B$2:$B$7,MAX($B$2:$B$7)),2),2),0
    1st difference apportioned among products with highest Cost. Next, any remaining difference to 1st product on the list with highest Cost

  8. #8
    Registered User
    Join Date
    05-03-2023
    Location
    Panama
    MS-Off Ver
    2019
    Posts
    10

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    Thanks for the helpp

  9. #9
    Registered User
    Join Date
    05-03-2023
    Location
    Panama
    MS-Off Ver
    2019
    Posts
    10

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    thansk for the helpp this was very helpfull

  10. #10
    Registered User
    Join Date
    05-03-2023
    Location
    Panama
    MS-Off Ver
    2019
    Posts
    10

    Distribute automatically and equitly on EXCEL, in a certain number of cells, the result o

    Hello this is a continuation of my last thread distribute-automatically-and-equitly-on-excel-in-a-certain-number-of-cells

    I need to distribute The total shipping cost equally on each shipping cost Cell, taking n count this time that the Total shippping cost is linked to anTrackID, and therefore the Products al linked to it.

    i have in cell D2 the old formula but it have to be update.
    Attached Files Attached Files

  11. #11
    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,978

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    I have closed your follow-on thread - please continue here. I have copied your post here (see above).
    Last edited by AliGW; 05-04-2023 at 01:40 AM.

  12. #12
    Registered User
    Join Date
    05-03-2023
    Location
    Panama
    MS-Off Ver
    2019
    Posts
    10

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    Quote Originally Posted by bsalv View Post
    you give everybody the same and if there is a remaining , give it to those with the greatest cost.
    Hello again, can you please help me with the continuation of the thread ?

  13. #13
    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,978

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    Please be patient - remember that your helper is in a completely different time zone to you and is probably only just eating breakfast!

  14. #14
    Registered User
    Join Date
    05-03-2023
    Location
    Panama
    MS-Off Ver
    2019
    Posts
    10

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    Of course, thx
    Last edited by AliGW; 05-04-2023 at 02:00 AM. Reason: Please do NOT quote unnecessarily!

  15. #15
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    hello,
    Please Login or Register  to view this content.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    05-03-2023
    Location
    Panama
    MS-Off Ver
    2019
    Posts
    10

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    Hello thanks a lot, but i think i forget detailing more

    Every TRACKID will have a differente value (it not will be cost just one value, in this case 14.60)

    Example:

    TRACKID

    TBA001 ---> 14.60 and it will be split equally on every product under this unique trackID
    TBA002 ---> 5.20 and it will be split equally on every product under this unique trackID
    TBA003 ---> 2.85 and it will be split equally on every product under this unique trackID

    Thats why i manage my little inventory and every box came with a unique TrackId, certain amount of products in every box and with different shipping cost per box. So i divide equally the shipping cost of each box on each product that came inside the box

  17. #17
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    hello,
    now with an extra table for your shipping costs
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    05-03-2023
    Location
    Panama
    MS-Off Ver
    2019
    Posts
    10

    Re: Distribute automatically and equitly on EXCEL, in a certain number of cells, the resu

    Quote Originally Posted by bsalv View Post
    hello,
    now with an extra table for your shipping costs
    Thanks for the help, you are a GOD !!

+ 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] Distribute number in one cell evenly across 5 other cells (round up if necessary)
    By b1ke in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-20-2022, 01:19 PM
  2. Distribute number across cells
    By pchugh in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-13-2019, 04:31 AM
  3. [SOLVED] distribute number on excel cell according to value
    By mazan2010 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-05-2017, 12:12 PM
  4. Replies: 7
    Last Post: 01-09-2016, 04:59 PM
  5. Evenly distribute a number across several cells
    By gbursson in forum Excel General
    Replies: 2
    Last Post: 02-18-2015, 05:51 AM
  6. [SOLVED] Distribute contents of a cell into other cells according to number of characters
    By Sacharny in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-14-2013, 10:38 AM
  7. Macro to Divide a Data in Cells and Distribute to X number of Columns
    By paul.serrato in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2013, 12:01 AM

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