Forum Discussion
gadgiewalker
Sep 22, 2023Copper Contributor
Look up date based on cumulative data
Hi I am struggling to get this to work. Essentially the data is in A and B. I want to input the date into Date Grazed and show under Date Ready where the cumulative data in B when taken from t...
Patrick2788
Sep 27, 2023Silver Contributor
A 365 solution using some accumulation:
=LET(
Accumulate, LAMBDA(a, v, a + v),
start, XMATCH(DateInput, Table1[Date]) - 1,
table, DROP(Table1, start),
dates, TAKE(table, , 1),
KgDM_Day, TAKE(table, , -1),
ReadyDate, SCAN(0, KgDM_Day, Accumulate),
XLOOKUP(GrowthRequired, ReadyDate, dates, " - ", 1)
)- Riny_van_EekelenSep 27, 2023Platinum Contributor
Patrick2788 Impresssive, but a bit over the top for such a trivial problem IMHO.
- Patrick2788Sep 27, 2023Silver ContributorMaybe so but it was fun!