I am generating the timestamps in a day to send some messages to customers
Make a copy of sheet here: https://docs.google.com/spreadsheets/d/1a1-tVXxlZI4RlNxH4sIEejZhh0FKUFZ-jV88M8s-agE/copy
They are to be sent from Start time to End time and they cannot be sent after End time (My customers sleep after End time)
I have created a formula that can generate the sequence but it will not consider end time and keeps going continuously.
=arrayformula(text(SEQUENCE(200,1,value((datevalue(date(D2,C2,B2)) + timevalue(time(E2,F2,G2)))*1000),timevalue(time(I2,J2,0))*1000)/1000,"DD/MM/YYYY HH:MM:SS")&"*")
I would love the sequence to be generated the next day as well. This means if today is March 10 and start time is 10 with end time is 21 hrs
I need a sequence beyond the next day will resume from 11 March after 10 am
Those red dates must be skipped and continued from the next day

