+ Reply to Thread
Results 1 to 16 of 16

how to equally distribute the distributed from absolute cell among the columns or rows

  1. #1
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    how to equally distribute the distributed from absolute cell among the columns or rows

    I want to know , that is there any formula auto adjusting the cell values in such a way, so that distributed amount or value from a absolute reference equal the exact amount in the absolute ref and no need to manually correcting by adding and minusing individual amounts
    If a profit is shared among some persons, on some basis, and if it is not equally distributable by dividing , then is there a formula in excel, that will distribute the amount correctly on some rounding basis, near to the next,without manually going and altering with + or minus.
    If a total profit is to be distributed among rows or columns, naturally the individual amount is divided by total amount and multiplied by the profit to get the individual value

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    Pl find here. It is having only limited differences. I want to know, whether you could automate the distribution, so it exactly match the total value in distribution, like rounding of uneven numbers distributed among selected rows or columns. Sorry, if i have asked anything wrong
    Attached Files Attached Files
    Last edited by rajuj; 12-12-2013 at 03:24 AM.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    Good question but I don't have any suggestion from my end

    Because distributing the amount equally will result several decimal places and rounding it to the 2 decimals will ignore the actual decimals and which is causing unequal total at the end.

  5. #5
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    Hi, More over if there is no round formula, it displays the correct total value. But horizontal and vertical check, if carried out on this, then you have to adjust the individual item to get sorted out. Particularly in long digit calculation, the difference seems to be more. Please try to have a formula, so that one need not go to individual cells to correct. There may be solution, who knows, you may be that person, Thank you

  6. #6
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    hi rajuj. i might be wrong, but surely there has to be some sort of logic you wish to apply. otherwise, Excel won't be able to help. you need to always ask yourself how would you want to do it manually? how do you wish to distribute 1 cent/paise to all 7 of them equally? it's impossible. or if it's 3 to 7 cents like you mentioned.

    for eg. you might want to distribute whatever that is left to the last person or to the highest amount invested (got to consider when there's 2 people who contributed the same), etc. it will probably never be fair, but it's a logic you need to provide for it to work.

    in the simplest of case, where i distribute to the last person would be this in C2 & copied down:
    =IF(A3<>"",ROUND(B2/$B$9*$C$9,2),$C$9-SUM(C$1:C1))

    D8, by the way, can simply be:
    =SUM(C2:C8)

    but as i said, i might be wrong. Sixthsense has helped you gather for assistance, so see if there are other opinions. meanwhile, you can start thinking about the logic

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  7. #7
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    I would expect the logic would be to add the extra cents to those who have the highest fraction of a cent. Haven't quite figured out the formula yet though!

  8. #8
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    Hi- beni,sir,
    This really solved the issue. Because, in excel, the logic may work but, if you have not given this kind of formula, merely round, then this problem is noted. I ask , is this formula could be applied to all kind of round problems. I also note that some amount is not divisible by exact amount leading to decimals, but your formula did work for me. I think, that you are arriving at a figure and then adjusting exactly to the total. [HTML]]Will it correctly distribute to the proportion .Then this is the solution. Because, in so many calculations, like this like distribution of huge quantities, this formula would definitely help in automatic rounding of entries according to some ratio or proportion in which we want the distribution. i do not know how to activate the bold letters in my letter.

  9. #9
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    Hi,Why A3<> in your formula. Is there any significance

  10. #10
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    I got as far as:
    =ROUNDDOWN(C$9/B$9*B2,2)+IF(ISNUMBER(MATCH(C$9/B$9*B2-ROUNDDOWN(C$9/B$9*B2,2),LARGE(C$9/B$9*B$2:B$8-ROUNDDOWN(C$9/B$9*B$2:B$8,2),ROW(INDIRECT("1:"&(C9-SUM(ROUNDDOWN(C$9/B$9*B$2:B$8,2)))*100))),0)),0.01,0)
    as an array formula in C2 and copy down, it doesn't quite work for me though as the second part of the indirect has a rounding error resulting in 4.000000001234 or something which creates an error in the indirect reference.

    I tried stuff like:
    ROUNDDOWN(C$9/B$9*B2,2)+IF(ISNUMBER(MATCH(C$9/B$9*B2-ROUNDDOWN(C$9/B$9*B2,2),LARGE(C$9/B$9*B$2:B$8-ROUNDDOWN(C$9/B$9*B$2:B$8,2),ROW(INDIRECT("1:"&int((C9-SUM(ROUNDDOWN(C$9/B$9*B$2:B$8,2)))*100)))),0)),0.01,0)
    but for some reason I can't get a second round function to work in the formula.

    (note, the idea behind the formula was to round down all the shares to cents, then work out the difference between that and the exact total (what this bit does ((C9-SUM(ROUNDDOWN(C$9/B$9*B$2:B$8,2)))*100.. ) so in the example this gives 4 "spare" cents, so the idea was to find if the percentage of a cent of each share was within the top 4 amounts and if so, add an additional cent.

    Can't quite get there though and the OP seems happy... would appreciate it if anyone could point out where I'm going wrong though!

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    @ yudlugar,

    May be something like this?

    In C2 Cell - Array Formula - Requires CTRL+SHIFT+ENTER

    =IF(ROUND(B2/$B$9*$C$9,2)=MAX(ROUND($B$2:$B$8/$B$9*$C$9,2)),ROUND(B2/$B$9*$C$9,2)+($C$9-SUM(ROUND($B$2:$B$8/$B$9*$C$9,2))),ROUND(B2/$B$9*$C$9,2))

    Array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.

    Drag it down...

  12. #12
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    @ sixthsense, nice - I think that is very close. Although for me it distributes the 4 spare cents between the 1st, 2nd, 3rd and 5th highest fractions. (I think it should give the top one an extra cent and it doesn't...)

  13. #13
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    @ yudlugar,

    Oh God!!! You are drilling it even further

    No.... my brain will collapse if I do that lol

  14. #14
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    yeah I've given up too!

  15. #15
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    Quote Originally Posted by rajuj View Post
    is this formula could be applied to all kind of round problems. Will it correctly distribute to the proportion [/U][/B].
    well, it depends on what you want to do with it really. it simply does what you are already doing, but any extra amount that cannot be distributed will end up with the last person

    Why A3<> in your formula. Is there any significance
    the formula starts from A2. so what it does is to say that if the next row (A3) is NOT empty, do your ROUND formula. when it's finally empty (at A9), take the total (C9) minus the summation of whatever amount above. so C8 is essentially C9 - SUM(C2:C7)

    it's certainly not the fairest method, but the easiest. as mentioned, you would need to set the logic for us. there are probably 101 ways to do it & both yudlugar & Sixthsense have shared a few ways. so before you set a logic, there's no point to dwell too deeply on the formulas

  16. #16
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: how to equally distribute the distributed from absolute cell among the columns or rows

    hI, BENI SIR,
    Yours is somewhat is understood by me. Their formula though excellent, i could not understand. Do we need that much precision.
    Whenever, there is huge amount, adding and substracting and finally arriving amount, if it is to be distributed to the total to some proportion, your formula , i think make tally the total with the individual distribution. Otherwise, one has to do the vertical, horizontal check to find the difference, even though smaller and adjust. Normally, one would adjust by adding the required difference to the higher amount arrived, so that it does not create a problem. And this is the logic the normal distribution.
    I will check on larger digits and tell you , how it goes.
    By the by, if there is some uneven amount, and that has to be apportioned on no basis. How to get the total tally in this case.
    For eg. If there is 195
    to be divided among 3, it is divisible and hence distributed . But if if 199 is to be distributed among 3 persons, on no basis, like in my example, what is the formula. Is that, the other friends trying. I will try their formula also. Thanks to all of you . expecting your answer
    Last edited by rajuj; 12-13-2013 at 08:38 AM.

+ 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] Obtaining values from equally spaced columns and inserting in rows where they match
    By dhiresh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-04-2013, 07:48 AM
  2. [SOLVED] VBA to distribute data in column into columns and rows
    By AWM1966 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2012, 07:48 PM
  3. distribute names equally in front of numbers
    By rahulbawkar2006 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-20-2011, 06:18 AM
  4. Split rows equally in columns
    By cooksterni in forum Excel General
    Replies: 1
    Last Post: 06-26-2011, 10:46 AM
  5. Distribute Columns over Rows
    By ziohausam in forum Excel General
    Replies: 3
    Last Post: 01-31-2009, 09:22 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