Rounding values to 2 decimel while keeping total 100%

Fusionista

New Member
Joined
Apr 17, 2024
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hello!
In the attached file the values in column K ("Unique value %) should be rounded to 2 decimal but the "Total %" in column L should still stay exactly 100%.
So I can't use directly the ROUND function, as it messes up the 100 value, like this.

But is there a way to propotionally add/remove value to round the numbers to 2 decimal and keep the total value 100?

Also there could be an instance where there are 3 values all 33,333333%. So rounding them to 100 could be an issue. Right?

So I created a new worksheet with some data. The original worksheet has many-many more rows. But I chose those three clients.
Also started with a helper column S, but have no idea how to continue from there on...

The problems are:

1.The column M should equal 100 for each client, but ALS has only one value in one month. But the calculation still gives 100 for it.
So there's something wrong with the formula?

2. Client UMM has a total of 100,08 in column P, so the excess 0,08 should be distributed between the values of client UMM in column P.

3. Client VAU has a total of 99,99, so 0,01 should be somehow added to one value in column P.

It should continue with extra helper columns, but what should be the next one then?

Uploaded the Excel file here: Easyupload.io - Upload Files and Share Them Easily
 
Column P values come from this formula
Excel Formula:
=IF(O2=""; ""; ROUND(O2 / SUM(FILTER($O$2:$O$50000; ($O$2:$O$50000 > 0) * ($I$2:$I$50000 = I2))) * 100; 2))

So it calculates the hours in column O of the client from column I and has to sum 100 total for one client. And it does without rounding the P values to 2 decimal places.
But for the accounting it is required to work with 2 decimal places and I can't figure it out at the moment how to make it sum 100% for every clients percentages in colum

As in the example file I have one client UMM sum the percentage to 100,08 in column P and the other client VAU has 99,99. So For UMM I should substract 0,08 from the values in column P and for VAU I would have to add 0,01 to column P somehow
i can't open the file. See my image above. And I'm not going to manually figure out how many rows of each number you have. Please copy paste a table.
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
CO AreaCompany CodeCycleTextStarting dateEnding dateSegmentSender %ClientCost Element FromCost Element ToWBS ElementReceiver %Total h of every monthTotal WBSUnique value %Total %
10001000Z0423RText01.04.202330.04.2023Z0423RALS100,00ALS410000443333XYLD01
3,69​
3,69​
3,69​
100,00​
100​
0,00​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200642
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200643
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200662
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200665
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200667
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200670
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200694
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200700
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200728
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200736
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200749
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200751
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200755
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200772
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200791
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200857
0,41​
3,39​
0,28​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200356
0,44​
4,05​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200389
0,44​
4,05​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200628
0,44​
4,05​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200632
0,44​
4,05​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200636
0,44​
4,05​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200654
0,44​
4,05​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200781
0,44​
4,05​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200784
0,44​
4,05​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200796
0,44​
4,05​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200797
0,44​
4,05​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200806
0,44​
4,05​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200810
0,44​
4,05​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200831
0,44​
4,05​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333900648
0,83​
4,11​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333900654
0,83​
2,70​
0,23​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333900657
0,83​
4,11​
0,34​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200644
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200646
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200647
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200648
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200649
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200650
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200656
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200657
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200660
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200676
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200677
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200678
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200679
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200681
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200683
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200684
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200685
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200686
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200687
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200691
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200692
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200696
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200711
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200712
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200714
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200733
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200738
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200740
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200747
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200756
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200775
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200776
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200793
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200801
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200805
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200814
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200824
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200830
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200866
0,85​
7,43​
0,62​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200096
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200626
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200637
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200710
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200720
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200727
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200734
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200743
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200752
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200758
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200779
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200780
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200786
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200795
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200802
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200826
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333200827
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333220004
1,01​
10,14​
0,85​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333900612
1,52​
5,32​
0,44​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333900355A
2,34​
9,41​
0,78​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333900608
2,34​
9,41​
0,78​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333900620
2,34​
9,41​
0,78​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333900622
2,34​
9,41​
0,78​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333900623
2,34​
9,41​
0,78​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333900626
2,34​
9,41​
0,78​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333900628
2,34​
9,41​
0,78​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333900629
2,34​
9,41​
0,78​
10001000Z0123RText01.01.202331.01.2023Z0123RUMM100,00UMM410000443333900369
13,66​
100,00​
517,27​
43,11​
10001000Z0223RText01.02.202328.02.2023Z0223RUMM100,00UMM410000443333900582
12,03​
12,03​
1,00​
100,08​
0,08​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333200078
0,65​
11,18​
0,93​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333200674
0,65​
9,83​
0,82​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333200700
0,65​
9,83​
0,82​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333200810
0,65​
4,78​
0,40​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333200874
0,65​
4,78​
0,40​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333200875
0,65​
4,78​
0,40​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333200877
0,65​
4,78​
0,40​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333200878
0,65​
4,78​
0,40​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333201027
0,65​
9,83​
0,82​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333201099
0,65​
10,67​
0,89​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333201204
0,65​
9,83​
0,82​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333201786
0,65​
9,83​
0,82​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333201788
0,65​
4,78​
0,40​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333202338
0,65​
9,83​
0,82​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333202414
0,65​
9,83​
0,82​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333202672
0,65​
9,83​
0,82​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333202803
0,65​
4,78​
0,40​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333RK04
0,65​
9,83​
0,82​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333200035
9,8​
107,67​
8,97​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333200794
9,8​
107,67​
8,97​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333201001
9,8​
107,67​
8,97​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333201010
9,8​
107,67​
8,97​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333201184
9,8​
107,67​
8,97​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333201913
9,8​
107,67​
8,97​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333201914
9,8​
107,67​
8,97​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333202102
9,8​
107,67​
8,97​
10001000Z0123RText01.01.202331.01.2023Z0123RVAU100,00VAU410000443333202759
9,9​
100,00​
107,81​
8,98​
10001000Z0323RText01.03.202331.03.2023Z0323RVAU100,00VAU410000443333203217
8,26​
85,99​
7,17​
10001000Z1223RText01.12.202331.12.2023Z1223RVAU100,00VAU410000443333201692
0,53​
0,53​
0,04​
10001000Z1223RText01.12.202331.12.2023Z1223RVAU100,00VAU410000443333201778
0,53​
0,53​
0,04​
99,99​
0,01​
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Rounding values to 2 decimel while keeping total 100%
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Basically yes, and column O values come from the hours in column M "Receiver %"
 
Upvote 0
As I look at this, why are you considering even rounding in column P? just format that column as .## but don't round.
 
Upvote 0
Formatting doesn't change the fact that the values still have more than 2 decimal hidden. But I have to use 2 decimal places and somehow add/substract whatever is left to have 100% total
 
Upvote 0

Forum statistics

Threads
1,224,874
Messages
6,181,503
Members
453,048
Latest member
engkinooi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top