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
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
no:
1713347305144.png
 
Upvote 0
Sorry, granted the access now, but I think the file got messed up now as it's using some Google sheets links
 
Upvote 0
Sorry, granted the access now, but I think the file got messed up now as it's using some Google sheets links
i don't need the google file. just tell me how you calculate column P and what is the row() identifyer column that groups the values together?
 
Upvote 0
I can see you are using Ex365. But I have Ex2016 then I can not help.
I am out.
I'm not sure if his solution requires a 365 formula, but it is possible. I think SUMIFS or something like that is what is needed. but OP isn't telling what the IF portion is based on.
 
Upvote 0
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 column P.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,223,883
Messages
6,175,167
Members
452,615
Latest member
bogeys2birdies

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