Inventory allocation and variance help

Comp44

New Member
Joined
Jun 6, 2016
Messages
2
Hello all,

I'm stumped on this one and I'm sure I'm making it more complicated than it needs to be. Hope you can help.
I'm trying to find a formula to calculate inventory availability. This is a 2 part problem.
1. Need a formula to pull figures out of column E total inventory until there's nothing left

2. Need a formula to show a percentage in column D (including negative percentage once the inventory runs out). Running into an issue with the #DIV/0! error when it comes to locations where the system is expecting 0, so 0 would be allocated.

Blank example
Column AColumn BColumn CColumn DColumn E
1SiteSystem Expect AmountAllocationDeltaTotal Inventory
2Warehouse 120000 100,000
3Warehouse 240000
4Warehouse 325000
5Warehouse 430000
6Warehouse 515000

<tbody>
</tbody><colgroup><col><col><col><col><col><col></colgroup>


How I need it to be:
Column AColumn BColumn CColumn DColumn E
1SiteSystem Expect AmountAllocationDeltaTotal Inventory
2Warehouse 120000200000% 100,000
3Warehouse 240000400000%
4Warehouse 325000250000%
5Warehouse 43000015000-50%
6Warehouse 5150000-100%

<tbody>
</tbody><colgroup><col><col><col><col><col><col></colgroup>

Thanks in advance for your help!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi,

Do these do what you want

Cell C2 and copied down: =IF(E$2 > SUM(B$2:B2),B2,IF(SUM(B$2:B2) > E$2,IF(SUM(C1:C$2) < E$2,E$2-SUM(C1:C$2),0)))

<e$2,e$2-sum(c1:c$2),0)))
<e$2,e$2-sum(c1:c$2),0)))
Cell D2 and copied down: =IF(C2=0,-1,((B2-C2)/B2)*-1)


HTH

igold</e$2,e$2-sum(c1:c$2),0)))
</e$2,e$2-sum(c1:c$2),0)))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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