Forum Discussion
J-Des000
Jun 11, 2024Brass Contributor
Generating a list of Dates using nested array inside SEQUENCE function?
Hello, I am trying to generate a list of dates with different intervals using an array inside of a single SEQUENCE function. How do I do this? Cell references are in bracket below and the results...
- Jun 18, 2024
J-Des000 Please see the updated file below, which includes examples for days, months, and mixed intervals on separate worksheets. Hopefully that's what you meant...
Martin_Angosto
Jun 11, 2024Iron Contributor
Hi J-Des000 ,
I can propose a suggestion for generating the desired sequence for an individual start/end date. Attaching a sample document.
=LET(startDate,A1,endDate,B1,step,C1,SEQUENCE((endDate-startDate+step)/step,1,startDate,step))
As per generating this output for both rows of dates, I am afraid the only solution that has come to my mind would unfortunately result into an attempt to generate an array of arrays, which Excel does not support (as PeterBartholomew1 had taught me not so long ago).
Would love to see how he would suggest a solution for this. Probably something can be done with MAP() function or other similar paths, which I am not familiar with yet.