alexfwalker81
Member
- Local time
- Today, 08:42
- Joined
- Feb 26, 2016
- Messages
- 107
Evening All,
I have a bit of a conundrum here. Have a look at the attached Excel file.
Columns C-Q show the stock which is committed for despatch on days 1-14. Column B shows the stock which is available. The yellow highlighted cells in J3 and N4 show the days on which there will be no stock available, assuming that stock is not refreshed before days 7 and 11 respectively roll around.
What I am struggling with is how I would add a field which could do a job equivalent to the yellow cells. In other words, cumulatively sum the fields from left to right, until the sum exceeds the value in column B. Once the value in column B is exceeded, this field must show the field name (the day) which takes us over the available stock.
The attachment is somewhat simplified. The live query that I'm building has 60 day fields, so doing something like (1+2+3 and so on) just isn't going to work. Also, I'm not sure that that would achieve anything other than summing the row anyway - it couldn't identify the day on which the available stock is exceeded.
I have a bit of a conundrum here. Have a look at the attached Excel file.
Columns C-Q show the stock which is committed for despatch on days 1-14. Column B shows the stock which is available. The yellow highlighted cells in J3 and N4 show the days on which there will be no stock available, assuming that stock is not refreshed before days 7 and 11 respectively roll around.
What I am struggling with is how I would add a field which could do a job equivalent to the yellow cells. In other words, cumulatively sum the fields from left to right, until the sum exceeds the value in column B. Once the value in column B is exceeded, this field must show the field name (the day) which takes us over the available stock.
The attachment is somewhat simplified. The live query that I'm building has 60 day fields, so doing something like (1+2+3 and so on) just isn't going to work. Also, I'm not sure that that would achieve anything other than summing the row anyway - it couldn't identify the day on which the available stock is exceeded.