Wie fülle ich Wochentage automatisch aus, um Wochenenden in einer Liste von Google Sheets auszuschließen?
In Microsoft Excel können wir problemlos nur Wochentage füllen und die Wochenenden mithilfe der AutoFill-Optionen ausschließen. In Google Sheet gibt es jedoch keine Funktion, mit der wir Wochentage so schnell ausfüllen können wie in Excel. Wie können Sie mit dieser Aufgabe in Google Sheet umgehen?
In Google Sheet können Sie die folgende Formel anwenden, um Wochentage nur nach Bedarf zu füllen.
1. Bitte geben Sie das erste Datum ein, das Sie starten möchten, und geben Sie diese Formel unter der ersten Datumszelle ein: = A2 + IF (WOCHENTAG (A2)> 5,3,1), siehe Screenshot:
2. Drücken Sie Enter Drücken Sie die Taste und ziehen Sie den Füllpunkt nach unten zu den Zellen, in die Sie die Wochentage füllen möchten. In der Spalte werden nur serielle Wochentage wie im folgenden Screenshot angezeigt:
This comment was minimized by the moderator on the site
how to insert holidays here? Say for example, in India we have 26th January, 15th August and 2nd October as holidays. How do i avoid these dates in the autofill?
This comment was minimized by the moderator on the site
how to insert holidays here? Say for example, in India we have 26th January, 15th August and 2nd October as holidays. How do i avoid these dates in the autofill?
This comment was minimized by the moderator on the site
This is super helpful. Would you be able to give a little more information about how to manipulate this formula? For example, I only want to fill Mondays and Wednesdays. Is this possible?
This comment was minimized by the moderator on the site
Hi, Clayton,
To only fill Mondays and Wednesdays into a list of cells, you should do as this:
First, enter the date which is Monday or Wednesday in cell A1, and then copy the below formula into cell A2, then drag the fill handle down to your need:
=IF(TEXT(A1,"ddd")="Mon",A1+2,A1+5)
This comment was minimized by the moderator on the site
Is it possible to use this with an arrayformula across a horizontal row? I tried it but having some issues.
=arrayformula(if(COLUMN(C13:Z13), IF(INDIRECT(ADDRESS(ROW(C13:Z13),COLUMN(C13:Z13)-1)), INDIRECT(ADDRESS(ROW(C13:Z13),COLUMN(C13:Z13)-1)) + IF(WEEKDAY(INDIRECT(ADDRESS(ROW(C13:Z13),COLUMN(C13:Z13)-1)))>5,3,1), -1
) , -2))