divide number to cells by percentage

mrzuna

New Member
Joined
Dec 27, 2016
Messages
1
Hello everyone, I need a help about something which seems to be easy :D

For example

I have # people and I need to assign them by percentage in 6 groups

I would like to put # in one cell for example 25 which is cell $H$13

so I have put the formula (=+17%*$H$13)... and so on across 6 cells where I get the results

1gr 17%=4
2gr 17%=4
3gr 7%=2
4gr 13%=3
5gr 10%=3
6gr 36%=9

so in case of 25 people i got ok results, but when I pu 22 people I got this results

1gr 17%=4
2gr 17%=4
3gr 7%=2
4gr 13%=3
5gr 10%=2
6gr 36%=8

which is actually 23 not 22 :)

any help would be good, I tried a lot od things and can't get with result

TY
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hello everyone, I need a help about something which seems to be easy :D

For example

I have # people and I need to assign them by percentage in 6 groups

I would like to put # in one cell for example 25 which is cell $H$13

so I have put the formula (=+17%*$H$13)... and so on across 6 cells where I get the results

1gr 17%=4
2gr 17%=4
3gr 7%=2
4gr 13%=3
5gr 10%=3
6gr 36%=9

so in case of 25 people i got ok results, but when I pu 22 people I got this results

1gr 17%=4
2gr 17%=4
3gr 7%=2
4gr 13%=3
5gr 10%=2
6gr 36%=8

which is actually 23 not 22 :)

any help would be good, I tried a lot od things and can't get with result

TY

If you format cell to number/2 decimal places you will get your 22.
The total of the 2 decimal points come to 4 which added to the total of the whole part of numbers of 18 gives you the 22.

Pedro
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,668
Members
448,977
Latest member
moonlight6

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