+ Reply to Thread
Results 1 to 7 of 7

multiply a number by percentages and round so that they add upto the total %

  1. #1
    Registered User
    Join Date
    03-14-2009
    Location
    kerala, india
    MS-Off Ver
    Excel 2003
    Posts
    20

    multiply a number by percentages and round so that they add upto the total %

    I want to multiply a number say, 1551 by 5%, 6%, 7%, 8% and 9% and round each result to 0 decimal places. Then the sum of these results (544)should be equal to 35% of 1551 rounded to 0 decimal places (543). How do I create an if function for rounding so that the sum equals 543.
    Last edited by dittotharappel; 03-28-2009 at 12:06 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: multiply a number by percentages and round so that they add upto the total %

    I think your math is off. Multiplying that number gives me the final answer:

    Please Login or Register  to view this content.
    =ROUND(SUM(N2:R2),0)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: multiply a number by percentages and round so that they add upto the total %

    Maybe like this:
    Please Login or Register  to view this content.
    The formula in C3 and copied down is =IF( B3 = 0, 0, ROUND( ($C$1 - SUM(C$2:C2) ) * B3 / ($B$8 - SUM(B$2:B2)), 0) )
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    03-14-2009
    Location
    kerala, india
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: multiply a number by percentages and round so that they add upto the total %

    That works fine. But it would be better if the modification happens for the least decimal value for a rounddown and for the highest decimal value for a roundup. In the given function the modification happens to the last number.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: multiply a number by percentages and round so that they add upto the total %

    In the given function the modification happens to the last number.
    That may be true for the example, but is not in general. But by all means, change however you wish.

  6. #6
    Registered User
    Join Date
    03-14-2009
    Location
    kerala, india
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: multiply a number by percentages and round so that they add upto the total %

    Thanks shg, that saves me a lot of time and trouble.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: multiply a number by percentages and round so that they add upto the total %

    You’re welcome. Would you please mark the thread as Solved?

    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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