I have an inventory tracking system that unfortunately doesn't provide data for quantity change over weeks. I'm attempting to develop something similar in Excel that will give easy access to average drop week over week in order to identify approximate reorder thresholds.
I have an inventory tracking spreadsheet with new data input weekly. I've been trying to develop a formula that will recursively calculate the change in quantities between consecutive weeks, and then average those changes to give an estimated usage count per week. Ideally this doesn't add additional output cells or use macros; just drop new data in and have the averages update automatically.
I'm familiar with both functions of calculating change and averaging, but would require helper cells to hold the change data and then average that row. In essence, in Cell B2: =AVERAGE(D2-C2, E2-D2, ...) run through the entirety of Row 2, including new data added weekly in Column O, P, Q, etc.
I have not worked with any kind of looping or recursion in Excel before as I typically work with static datasets -- is this even possible with formulas? I have not found formulas such as WHILE, LOOP, FOR.
I've tried utilizing COUNT to get the number of cells within a table row, and then INDEX to find specific data and compare backwards =INDEX(A1:N6, 2, [COUNTFORMULA]) - INDEX(A1:N6, 2, [COUNTFORMULA]-1) but obviously this is missing any kind of recursion to work down each weeks data points.


