Google Sheets functions / Date & Time
Date & Time function · Google Sheets
NETWORKDAYS.INTL function
Workdays between dates with custom weekends.
Reference entry. Syntax, tested examples and a practice file arrive with the full guide. Open the official function list.