Knockoutpie
Board Regular
- Joined
- Sep 10, 2018
- Messages
- 116
- Office Version
- 365
- Platform
- Windows
It's difficult to describe, but could be considered something like a first in first out calculator.
There must be an easier way to do this than manual subtraction.
For this example the total inventory is 7500, I Would like to find how much was under 25, and if the total isn't met then move to next column under 10, etc using the next cell until the total inventory is met.
Example
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Item#[/TD]
[TD]Total Inventory[/TD]
[TD]25[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Part Example[/TD]
[TD]7500[/TD]
[TD]7150[/TD]
[TD]1800[/TD]
[TD]7600[/TD]
[TD]32950[/TD]
[/TR]
</tbody>[/TABLE]
Final Result
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Item#[/TD]
[TD]Total Inventory[/TD]
[TD]25[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Part Example[/TD]
[TD]7500[/TD]
[TD]7150[/TD]
[TD]350[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
There must be an easier way to do this than manual subtraction.
For this example the total inventory is 7500, I Would like to find how much was under 25, and if the total isn't met then move to next column under 10, etc using the next cell until the total inventory is met.
Example
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Item#[/TD]
[TD]Total Inventory[/TD]
[TD]25[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Part Example[/TD]
[TD]7500[/TD]
[TD]7150[/TD]
[TD]1800[/TD]
[TD]7600[/TD]
[TD]32950[/TD]
[/TR]
</tbody>[/TABLE]
Final Result
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Item#[/TD]
[TD]Total Inventory[/TD]
[TD]25[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Part Example[/TD]
[TD]7500[/TD]
[TD]7150[/TD]
[TD]350[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]