Split the numbers in excel in whole numbers, if the number given in percentage 50% 30% and 20% and avoid decimal values by rounding it to the nearest

Gyanendra

New Member
Joined
Jun 28, 2023
Messages
9
Office Version
  1. 2019
Platform
  1. Windows
Split the numbers in excel in whole numbers, if the number given in percentage 50% 30% and 20% and avoid decimal values by rounding it to the nearest
the total count of all should be equal to the requested number
 

Attachments

  • Capture.PNG
    Capture.PNG
    5.8 KB · Views: 13

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Assuming the numeric data are in column B and the percentages are on row 1, put:
=ROUND(C$1*$B2,0)
in C2 and copy across & down to E6.
 
Upvote 0
the total count of all should be equal to the requested number
If that is important, then you cannot have the one formula copied to all the cells. Using the formula from post 2 you can see that the total in row 3 is 16 not 15 and in row 6 it is 30 not 29.

25 01 24.xlsm
BCDE
150%30%20%
210532
315853
4281486
54221138
6291596
Split Numbers
Cell Formulas
RangeFormula
C2:E6C2=ROUND(C$1*$B2,0)


Instead, try something like this where the formula in D2 is copied across and down but there is a different formula in C2 copied down only.

25 01 24.xlsm
BCDE
150%30%20%
210532
315753
4281486
54221138
6291496
Split Numbers (2)
Cell Formulas
RangeFormula
C2:C6C2=B2-SUM(D2:E2)
D2:E6D2=ROUND(D$1*$B2,0)
 
Upvote 0

Forum statistics

Threads
1,226,067
Messages
6,188,700
Members
453,493
Latest member
BRACE

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