Allocation (Rounding Issue)

Adubb707

New Member
Joined
Nov 28, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Anyone who can assist would be my hero for life; this is a common problem I encounter at work and am hoping it can be handled formulaically.
I have totals (column B) that need to be fully allocated based on spreads based on Row 1 percentages; the values must be whole numbers. Because of rounding not all values in column B end up getting fully allocated across each of the months and I have to manually force-tie values. Additionally, the total for be month needs to tie back to the overall spread %'s.
Any help is greatly appreciated!
1701206766883.png
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Can you show me some examples how you re-distribute values if there is a variance

Or Explain how you do that when there is any such situation.

Excel will do what we will tell it to do... So I should be clear what to tell Excel :unsure:
 
Upvote 0
Can you show me some examples how you re-distribute values if there is a variance

Or Explain how you do that when there is any such situation.

Excel will do what we will tell it to do... So I should be clear what to tell Excel :unsure:
To address variances I look at the variances, by row, determine if there is also a variance by month, if both criteria is met I will add/subtract the variance from the row value until none exist.
IE: Cell C7:D7 I would add values of 1 in each in order to clear the variance by row and by column
1701209406897.png
 
Upvote 0
Check this and revert -

Book1
BCDEFGHIJKLMNOP
17.83%8.98%7.86%8.68%8.27%8.24%8.27%8.27%8.49%8.27%8.65%8.19%100.00%
2CheckVariance
3339273027292828282829282928339.00-
4204151816181717171717171817204.00-
5181141614161515151515151615181.00-
66667565555656566.00-
73322233333333333.00-
84045433333333340.00-
941111--------4.00-
Sheet1
Cell Formulas
RangeFormula
O1,O3:O9O1=SUM(C1:N1)
C3:N9C3=LET(Ttl,ROUND($B3*$C$1,0)+ROUND($B3*$D$1,0)+ROUND($B3*$E$1,0)+ROUND($B3*$F$1,0)+ROUND($B3*$G$1,0)+ROUND($B3*$H$1,0)+ROUND($B3*$I$1,0)+ROUND($B3*$J$1,0)+ROUND($B3*$K$1,0)+ROUND($B3*$L$1,0)+ROUND($B3*$M$1,0)+ROUND($B3*$N$1,0), Diff,$B3-Ttl, Clmn,COLUMN(C3)-COLUMN($B3), Adjs,IFS(AND(Diff>0,Diff>=Clmn),1,AND(Diff<0,-Diff>=Clmn),-1,TRUE,0), IFS(Ttl=$B3,ROUND($B3*C$1,0),TRUE,ROUND($B3*C$1,0)+Adjs))
P3:P9P3=B3-O3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
O:OExpression=AND(B1<>"",O1<>B1)textNO
 
Upvote 0
Hi,

could something like this work for you:

Cell Formulas
RangeFormula
C2:C17C2=ROUND(SUM($C$1:C$1)*$B2,0)
D2:N17D2=ROUND(SUM($C$1:D$1)*$B2,0)-ROUND(SUM($C$1:C$1)*$B2,0)
P1P1=SUM(C1:N1)
P2:P17P2=SUM(C2:O2)
 
Upvote 0
Check this and revert -

Book1
BCDEFGHIJKLMNOP
17.83%8.98%7.86%8.68%8.27%8.24%8.27%8.27%8.49%8.27%8.65%8.19%100.00%
2CheckVariance
3339273027292828282829282928339.00-
4204151816181717171717171817204.00-
5181141614161515151515151615181.00-
66667565555656566.00-
73322233333333333.00-
84045433333333340.00-
941111--------4.00-
Sheet1
Cell Formulas
RangeFormula
O1,O3:O9O1=SUM(C1:N1)
C3:N9C3=LET(Ttl,ROUND($B3*$C$1,0)+ROUND($B3*$D$1,0)+ROUND($B3*$E$1,0)+ROUND($B3*$F$1,0)+ROUND($B3*$G$1,0)+ROUND($B3*$H$1,0)+ROUND($B3*$I$1,0)+ROUND($B3*$J$1,0)+ROUND($B3*$K$1,0)+ROUND($B3*$L$1,0)+ROUND($B3*$M$1,0)+ROUND($B3*$N$1,0), Diff,$B3-Ttl, Clmn,COLUMN(C3)-COLUMN($B3), Adjs,IFS(AND(Diff>0,Diff>=Clmn),1,AND(Diff<0,-Diff>=Clmn),-1,TRUE,0), IFS(Ttl=$B3,ROUND($B3*C$1,0),TRUE,ROUND($B3*C$1,0)+Adjs))
P3:P9P3=B3-O3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
O:OExpression=AND(B1<>"",O1<>B1)textNO
This is genius work really; thank you for your input - where this does pose issues is that in aggregate, the monthly values (x-axis) becomes skewed-left as opposed to the intended overall distribution; this allocation is made up of many sections (all referencing the same percentages) but some with higher volumes, others with lower.
1701216437919.png
 
Upvote 0
The number of items (Description 1 etc.) remain same or variable?

Also, the problem is system will choose to shift one of the axis. And how to tell excel which one should it choose?
 
Upvote 0
The number of items (Description 1 etc.) remain same or variable?
The value of that particular cell would remain the static (hard-coded); the file has multiple sub-sections (groups of "Description" records) so I just re-used the headers with smaller amounts to better demonstrate the propensity of it having been allocated in the first half of the year.
 
Upvote 0
the file has multiple sub-sections (groups of "Description" records)
With multiple sub-sections it becomes difficult to explain Excel how to adjust the variance.

It can go into endless loop or circular reference if we tell excel to adjust 2 directions simultaneously...

At times there are some limitations to machine and thus human overriding becomes essential/critical.
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,024
Members
449,092
Latest member
ikke

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