Formula to distribute units based on weight, rounded to whole number, but sum to proper total

amyvdk

New Member
Joined
Jun 26, 2019
Messages
2
Hi there,
I'm having trouble figuring out a formula that will distribute my total number of units by weight. I need to round the result to the nearest whole number but I also need the total units once distributed to sum to the proper total.

Row 16.2%6.4%8.6%9.4%10.4%9.6%8.1%7.7%7.8%9.1%9.0%7.7%100.0%
Row 2
Row 3JANUARYFEBRUARYMARCHAPRILMAYJUNEJULYAUGUSTSEPTEMBEROCTOBERNOVEMBERDECEMBERTOTALActual total
Row 41111211111111513
111111111111912
formula in row 4:
IF(ISERROR($M$4*A1)," ",($M$4*A1))

<tbody>
</tbody>
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Based on what I understood, are you looking for something like below:


Book1
ABCDEFGHIJKLMN
16.20%6.40%8.60%9.40%10.40%9.60%8.10%7.70%7.80%9.10%9.00%7.70%100.00%
2
3JANUARYFEBRUARYMARCHAPRILMAYJUNEJULYAUGUSTSEPTEMBEROCTOBERNOVEMBERDECEMBERTOTALActual total
41111211111111513
5111111111111912
Sheet1
Cell Formulas
RangeFormula
A4=IF($M4="","",ROUND($M4*A$1,0))
N4=SUM(A4:L4)
 
Upvote 0
Based on what I understood, are you looking for something like below:

ABCDEFGHIJKLMN
16.20%6.40%8.60%9.40%10.40%9.60%8.10%7.70%7.80%9.10%9.00%7.70%100.00%
2
3JANUARYFEBRUARYMARCHAPRILMAYJUNEJULYAUGUSTSEPTEMBEROCTOBERNOVEMBERDECEMBERTOTALActual total
41111211111111513
5111111111111912

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
A4=IF($M4="","",ROUND($M4*A$1,0))
N4=SUM(A4:L4)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

That's certainly an option, it's the inverse way of thinking about it. The original goal was to distribute the 15 units across each month by seasonal weight.
 
Upvote 0

Forum statistics

Threads
1,214,793
Messages
6,121,617
Members
449,039
Latest member
Mbone Mathonsi

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