Sample Workbook.xlsx | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | WEEK-01 | EXPECTED VALUE | ||||
2 | 01-STORE | 5 | ||||
3 | 02-STORE | 5 | ||||
4 | 03-STORE | 5 | ||||
5 | 04-STORE | 5 | ||||
6 | ||||||
7 | ||||||
8 | 01-STORE_DELIVERY | 5 | ||||
9 | 02-STORE_DELIVERY | 5 | ||||
10 | 03-STORE_DELIVERY | 2 | ||||
11 | 04-STORE_DELIVERY | 0 | ||||
12 | ||||||
13 | ||||||
14 | TOTAL PRODUCT | 12 | ||||
Sheet1 |
Hey everyone!
I'm working in Office 2016 and trying to build a formula that will take a set value and subtract that value against a set of requirements until the set value is zero. I attached a sample spreadsheet that better communicates what I am trying to do and the expected values.
Cells B2, B3, B4 and B5 contain the variable requirement. Cell B14 has the set value. I want to meet the needs of stores 01 first, 02 second, 03 third, and 04 last. My expected returns are in cells D8, D9, D10, and D11.
Any advice on improving what I am searching for, resources, etc., would be greatly appreciated!
Have a great day!