Generating a list of Dates using nested array inside SEQUENCE function?

des378

New Member
Joined
Jun 11, 2024
Messages
10
Office Version
  1. 365
Platform
  1. MacOS
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 I'm looking for.

Ex:

Start Date End Date Day Interval
(A1) 2024-02-15 (B1) 2024-03-07 (C1) 7
(A2) 2024-02-23 (B2) 2024-03-22 (C2) 14


Looking to generate with SEQUENCE function this result:

2024-02-15
2024-02-22
2024-02-29
2024-03-07
2024-02-23
2024-03-08
2024-03-22

Basically it generates a list of values going through each start date in the array (A1:A2) and their respective interval (C1:C2). I am trying to use one instance of the SEQUENCE function to do this nesting arrays inside instead of using a SEQUENCE function for each start date. Any ideas?

Thank you in advance.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABC
115/02/202407/03/20247
223/02/202422/03/202414
3
4
515/02/2024
622/02/2024
729/02/2024
807/03/2024
923/02/2024
1008/03/2024
1122/03/2024
12
Data
Cell Formulas
RangeFormula
A5:A11A5=DROP(REDUCE("",SEQUENCE(ROWS(A1:A2)),LAMBDA(x,y,LET(a,INDEX(A1:A2,y),c,INDEX(C1:C2,y),VSTACK(x,SEQUENCE((INDEX(B1:B2,y)-a)/c+1,,a,c))))),1)
Dynamic array formulas.
 
Upvote 0
Another option.
Book1
ABC
12/15/243/7/247
22/23/243/22/2414
3
4
52/15/24
62/22/24
72/29/24
83/7/24
92/23/24
103/8/24
113/22/24
Sheet1
Cell Formulas
RangeFormula
A5:A11A5=LET(m,(B1:B2-A1:A2)/C1:C2+1,s,SEQUENCE(1,MAX(m)),TOCOL(IFS(m>=s,A1:A2+(s-1)*C1:C2),2))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,883
Messages
6,175,167
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top