Round issue for small numbers based on % sell thru by customer

dversloot1

Board Regular
Joined
Apr 3, 2013
Messages
113
Hello,

I'm running into a small problem here that I'm hoping someone can help out with.

If I forecast a small number of units for a group of customers, then break it down based on historical customer sales, how do I sort out the rounding so that the break down will equal my group forecast?

Example
Grp Forecast5
FC allocationForecast
Customer 16%0
Customer 213%1
Customer 34%0
Customer 415%1
Customer 517%1
Customer 67%0
Customer 76%0
Customer 88%0
Customer 915%1
Customer1010%0

<tbody>
</tbody>

When I remove all decimals, there are only 4 units. How do I ensure that all 5 get allocation appropriately?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
In the above scenario, Customer10 should have a 1 since he returns 0.50. So, for this scenario:

Code:
=ROUND(B3*$B$1,0)

This assumes $B$1 is your Group Forecast and B3 is the start of Customer 1's percentage (6%).
 
Upvote 0
Sort by allocation?

Row\Col
A​
B​
C​
D​
1​
Grp Forecast
5​
2​
3​
Allocation​
Forecast​
4​
Customer 5
17%​
1​
C4: =--(SUM(C$3:C3) < $C$1)
5​
Customer 4
15%​
1​
6​
Customer 9
15%​
1​
7​
Customer 2
13%​
1​
8​
Customer10
10%​
1​
9​
Customer 8
8%​
0​
10​
Customer 6
7%​
0​
11​
Customer 1
6%​
0​
12​
Customer 7
6%​
0​
13​
Customer 3
4%​
0​
 
Upvote 0
I guess to take it to the extreme, if the group forecast was 3 and you used your formula, only Customer 5 would get a 1 unit.
Any workaround for that?
Grp Forecast
3
FC allocationForecast
Customer 16%0
Customer 213%0
Customer 34%0
Customer 415%0
Customer 517%1
Customer 67%0
Customer 76%0
Customer 88%0
Customer 915%0
Customer1010%0

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
I guess to take it to the extreme, if the group forecast was 3 and you used your formula, only Customer 5 would get a 1 unit.
Any workaround for that?
Grp Forecast3
FC allocationForecast
Customer 16%0
Customer 213%0
Customer 34%0
Customer 415%0
Customer 517%1
Customer 67%0
Customer 76%0
Customer 88%0
Customer 915%0
Customer1010%0

<tbody>
</tbody>

Nope. There really isn't because they all round down to 0. Well, you can do this in column D:
Code:
=RANK(C4,$C$4:$C$13)
and then this in column E:
Code:
=IF(D4<=$B$1,1,0)

But that's getting into very very specific territory and will only work through a forecast of 8.
 
Upvote 0
Nope. There really isn't because they all round down to 0. Well, you can do this in column D:
Code:
=RANK(C4,$C$4:$C$13)
and then this in column E:
Code:
=IF(D4<=$B$1,1,0)

But that's getting into very very specific territory and will only work through a forecast of 8.

I think I've figured it out.
It isn't pretty but it gets the job done.
I sorted the customers in order of highest to lowest allocation.
In C4 i wrote:
<c$1,round($b4*c$1,0)=0),1,if(sum(round(c$1*$b4,0),c$3:c3)><c$1,round($b4*c$1,0)=0),1,if(sum(round(c$1*$b4,0),c$3:c3)><c$1,round($b4*c$1,0)=0),1,if(sum(round(c$1*$b4,0),c$3:c3)>=IF(SUM(C$3:C3)=C$1,0,IF(AND(SUM(C$3:C3) < C$1,ROUND($B4*C$1,0)=0),1,IF(SUM(ROUND(C$1*$B4,0),C$3:C3) > C$1,C$1-SUM(C$3:C3),ROUND(C$1*$B4,0))))
I dragged this down and across for other group forecasts.

Grp Forecast3510152025100
AllocationForecast
Customer 517%11233417
Customer 415%11223415
Customer 915%11223415
Customer 213%01123313
Customer1010%01122310
Customer 88%0011228
Customer 67%0011127
Customer 16%0001126
Customer 76%0001116
Customer 34%0000103

<tbody>
</tbody>

</c$1,round($b4*c$1,0)=0),1,if(sum(round(c$1*$b4,0),c$3:c3)></c$1,round($b4*c$1,0)=0),1,if(sum(round(c$1*$b4,0),c$3:c3)></c$1,round($b4*c$1,0)=0),1,if(sum(round(c$1*$b4,0),c$3:c3)>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,294
Members
449,149
Latest member
mwdbActuary

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