Started By
Message

Excel question

Posted on 3/26/15 at 1:10 pm
Posted by Big Scrub TX
Member since Dec 2013
33315 posts
Posted on 3/26/15 at 1:10 pm
Is anyone aware of any function that would allow you to round a list of numbers while holding the sum of the rounded amounts equal to the original sum of the non-rounded amounts?
Posted by southernelite
Dallas
Member since Sep 2009
53151 posts
Posted on 3/26/15 at 1:30 pm to
Just change the formatting to include no decimals?
Posted by Big Scrub TX
Member since Dec 2013
33315 posts
Posted on 3/26/15 at 1:39 pm to
quote:

Just change the formatting to include no decimals?


Doesn't work for large amounts.
Posted by GenesChin
The Promise Land
Member since Feb 2012
37706 posts
Posted on 3/26/15 at 1:41 pm to
So you are saying you want like 95789.34 to round to 96000 but you want everything to add up with the originals?
Posted by sneakytiger
Member since Oct 2007
2471 posts
Posted on 3/26/15 at 1:51 pm to
Sure, plus or minus 1
Posted by Big Scrub TX
Member since Dec 2013
33315 posts
Posted on 3/26/15 at 2:02 pm to
quote:

So you are saying you want like 95789.34 to round to 96000 but you want everything to add up with the originals?


Yes.
Posted by GenesChin
The Promise Land
Member since Feb 2012
37706 posts
Posted on 3/26/15 at 2:19 pm to
If that is the case, easiest thing would probably be having a hidden tab that does calculations on original then on actual page rounding them.


If you want to get extremely technical, create a table that maps rounded numbers to original, do a vlookup to the table for each calculation.

Anyone who tried working on that workbook would hate you for life though
Posted by torrey225
Member since Mar 2015
1437 posts
Posted on 3/26/15 at 2:22 pm to
=ROUND(NUMBER, DIGITS) doesn't work?
Posted by Big Scrub TX
Member since Dec 2013
33315 posts
Posted on 3/26/15 at 2:45 pm to
quote:

=ROUND(NUMBER, DIGITS) doesn't work?


That works for rounding an individual number but it does nothing to hold the entire series to the original sum.
Posted by Big Scrub TX
Member since Dec 2013
33315 posts
Posted on 3/26/15 at 2:46 pm to
quote:

If that is the case, easiest thing would probably be having a hidden tab that does calculations on original then on actual page rounding them.


If you want to get extremely technical, create a table that maps rounded numbers to original, do a vlookup to the table for each calculation.

Anyone who tried working on that workbook would hate you for life though




I'm somewhat surprised that there is no embedded function for this. It seems like a "solver" based type of operation.
Posted by Wasp
Off Highland rd.
Member since Sep 2012
1483 posts
Posted on 3/26/15 at 3:25 pm to
Describe in a little more detail what you want to do. I think I have something but not sure.
Posted by iAmBatman
The Batcave
Member since Mar 2011
12382 posts
Posted on 3/26/15 at 3:27 pm to
Why can't you just have 2 columns, one for the exact figures and one for the rounded figures?
Posted by Big Scrub TX
Member since Dec 2013
33315 posts
Posted on 3/26/15 at 3:46 pm to
quote:

Why can't you just have 2 columns, one for the exact figures and one for the rounded figures?


How does that make the 2 sums equal each other necessarily?
Posted by Big Scrub TX
Member since Dec 2013
33315 posts
Posted on 3/26/15 at 3:48 pm to
quote:

Describe in a little more detail what you want to do. I think I have something but not sure.


I have a long list of big numbers (millions to tens of millions) which often look like this: "11,253,153.64". The list adds up to one sum (X). In order to make the numbers usable, I need to be able to round, potentially all the way to the 10-thousandths place. But I ALSO need the sum of the list of rounded numbers to be exactly equal to X.
Posted by Wasp
Off Highland rd.
Member since Sep 2012
1483 posts
Posted on 3/26/15 at 4:11 pm to
What if the sum of decimal places does not add to one?
Posted by Wasp
Off Highland rd.
Member since Sep 2012
1483 posts
Posted on 3/26/15 at 4:12 pm to
Sounds a little like office space. Just shave them off, put them in an account.
Posted by Big Scrub TX
Member since Dec 2013
33315 posts
Posted on 3/26/15 at 4:16 pm to
quote:

What if the sum of decimal places does not add to one?


They always will because each number in the original list is calculated by taking a percentage off of X.
Posted by Wasp
Off Highland rd.
Member since Sep 2012
1483 posts
Posted on 3/26/15 at 4:19 pm to
Do the % add up to 100?
Posted by GenesChin
The Promise Land
Member since Feb 2012
37706 posts
Posted on 3/26/15 at 4:26 pm to
I'm still a little confused on why the rounding would not affect the sum. And if it does affect the sum, how in the world would any calculation you use based on that not screw up
Posted by Big Scrub TX
Member since Dec 2013
33315 posts
Posted on 3/26/15 at 4:29 pm to
quote:

Do the % add up to 100?


Yes.
first pageprev pagePage 1 of 2Next pagelast page

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram