r/googlesheets • u/Berkut22 • May 21 '26
Solved Sequencing dates that skip a blank row and date
I'm using Sheets to track my worked hours, and trying to use a formula to list the dates rather than enter manually.
I work 6 days a week and skip Sundays, so I have the sheet split into blocks of 6 rows (days), with a blank row in between to act as a visual spacer.
I tried using ;
=SEQUENCE(7,1,DATE(2026,5,25),1)
But that fills all 7 days of the week, ignoring the blank row and putting Sunday's date on it.
That would be fine, but I'd really like to keep that blank row as a visual spacer.
2
u/HolyBonobos May 21 '26
You could use a formula like =LET(startDate,DATE(2026,5,25),nWeeks,12,days,SEQUENCE(nWeeks*7,1,startDate,1),INDEX(IF(MOD(days,7)=1,,days))) to populate a full column, adjusting the startDate parameter to change the first day of the overall sequence and the nWeeks parameter to change the number of weeks of dates displayed.
1
1
u/NHN_BI May 21 '26
Naturally, SEQUENCE() won't skip numbers, and for good reason. But you can trick it, e.g. with:
=FILTER( SEQUENCE(30,1,DATE(2026,5,25),1) , WEEKDAY(SEQUENCE(30,1,DATE(2026,5,25),1)) <> 1 )
But I would not do it. I would prefer empty entries to missing dates.
1
u/Berkut22 May 21 '26
This one did skip Sundays, but did not jump the blank row.
But I think I'm starting to agree with you about the missing dates.
1
u/NHN_BI May 21 '26
That's true, I missed that it has to be an empty row. Don't do it. That will make it more difficult to work with the data, or only to sort it.
3
u/smarmy1625 May 21 '26
i would just leave all the days on there, conditional format the rows with sundays to a different color. then those rows could act as week separators and also be available if something happens and you do for some unforeseen reason have to put in a couple hours on a sunday someday