LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default Making % add up to the original whole number?

We have to apportion a fixed amount of cash to employees according to a
formula based on length of service and other factors. Since we must
round to the penny, we often would be off by a penny or so.

We solved this by fudging the original amount being distributed until
the sum of the rounded amounts equals the actual amount being
distributed. Using your example, we have a cell (we name ours
"FudgeFactor") that we might change to 49.994 or 50.011 or whatever
works to make those rounded totals add up to 50. (We use conditional
formatting to tell us when we're on the money.) If our original
rounded total was, say, 50.01, this might actually result in a couple
of employees getting a penny less and one getting a penny more. But
nobody gains or loses more than a penny, and the amounts add up to what
is being distributed. I don't know if this would work for you, but
everyone here is fine with it.

Oh, and we could use Goal Seek to change FudgeFactor, but my boss likes
to play with the number himself, so it's fine by me. I like to keep
the boss happy.

Stephen wrote:
Thank you, but, in my business, we cannot use the largest one to take up the
slack. I was hoping Excel was "smart" enough to figure out which one was
closest to the rounding up or down to make it equal the original total.



"Tom Ogilvy" wrote:

I usually choose the largest portion to take up the slack. so multiply each
of the percentages by the original except one and make that value equal to
the original minus the sum of the other results

50 * 21% = x
50 * 29% = y
50 * 19% = z
w = 50 - sum(x, y, z) <== approximates 31%

--
Regards,
Tom Ogilvy


"Stephen" wrote:

I am trying to mulitply an original number (say 50) by a series of
percentages adding up to 100%. When Excel adds them together, due to
rounding, they don't add up to the original number. Do you know how I can
get it to round correctly to get the original number?




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
multiplying by variables based off original number jato Excel Worksheet Functions 3 November 10th 09 12:00 PM
Making a new XL file form the Original XL data - Misho Misho Excel Discussion (Misc queries) 3 September 25th 09 08:09 PM
making copied cells change with change in original cell Jennifer Mcdermeit Excel Worksheet Functions 2 July 20th 06 04:58 PM
Making different sheet from the original sheets data Shetty Excel Programming 5 October 27th 03 01:11 PM
making a cell fixed number to a input number fwday[_2_] Excel Programming 1 October 25th 03 02:38 AM


All times are GMT +1. The time now is 04:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"