I have a range (B1:B7) containing Dates as listed below
1-Jan 1-Jan 1-Jan 2-Jan 2-Jan 2-Jan 3-Jan
I want this range to repeat N times based on a cell value and also increment each value of the range by 7 when the range repeats each time.
Eg : If the value in cell A1 = 3 , I want the date range to repeat 3 times starting from cell A2 and increment the values by 7 each time they repeat.
Expected Result : 1-Jan 1-Jan 1-Jan 2-Jan 2-Jan 2-Jan 3-Jan 8-Jan 8-Jan 8-Jan 9-Jan 9-Jan 9-Jan 10-Jan 15-Jan 15-Jan 15-Jan 16-Jan 16-Jan 16-Jan 17-Jan
Below is the formula I am using to repeat the range. But I couldn't find a way to increment the values by 7 when the range repeats each time.
=query(flatten(transpose(ARRAYFORMULA(split(rept(B1:B7&" ",A1)," ")))),"where Col1 is not null")
Result : 1-Jan 1-Jan 1-Jan 2-Jan 2-Jan 2-Jan 3-Jan 1-Jan 1-Jan 1-Jan 2-Jan 2-Jan 2-Jan 3-Jan 1-Jan 1-Jan 1-Jan 2-Jan 2-Jan 2-Jan 3-Jan