I've written the outside of a function as an Excel Lambda function.
LAMBDA(Years, TextFmt, EndOfMonth, ByRows,
LET(
MonthNbrs, IF(ByRows, SEQUENCE(1, 12, 1, 1), SEQUENCE(12, 1, 1, 1)),
Dates, MAP(
Years,
LAMBDA(Year, MAP(MonthNbrs, LAMBDA(Month, DATE(Year, Month, 1))))
),
Dates
)
)
I'm trying to enumerate years by months.
Dates as a return keeps giving me a Calc error.