Urgent - Help making totals add up after rounding to whole numbers

Nick24

New Member
Joined
Dec 1, 2014
Messages
9
Morning guys,

I have a column of values containing 3050 rows. Each row has a value from 0 - 50. The majority of cells are 1's, 2's etc.

I need to create two new columns to the left, one of which has 50% of the value, and the next having 30% of the value.

The trouble is, I've done previous analysis and the totals MUST add up to totals I've previously specified (the total is 3550, 50% is 1775 and 30% is 1183. They must also be whole numbers.

So far i've gotten about 200 off the 50%, and 50 off of the 30%.

I've tried stating rules with an IF function for the 50% of: =IF($O4=1,1,IF($O4=2,1,IF($O4=3,1,IF($O4=4,2,IF($O4=5,2,IF($O4=6,3,IF($O4=7,3,IF($O4=8,4,IF($O4=9,4,ROUND($O4*$Q$3,0)))))))))) but this is whats still putting me over 200 off.

Can anyone help me?!

Thanks,
 

Some videos you may like

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,350
How do you get 1183 ?
30% of 3550 is 1065.

Why are you rounding? If you start rounding you're "creating/losing" numbers that didn't originally exist hence the totals may not add up.

You're probably better off posting a spreadsheet.

Attach a sample spreadsheet with expected results, remove any sensitive data.
You cant attach files on this forum.
Upload the file to an online storage site then place a link to it on this forum.
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,123,517
Messages
5,602,117
Members
414,505
Latest member
quoctrungvu99

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
Top