Good day Supat
The following is from a post by Hui that I have saved you may find it of help. If it does what you want thank Hui not me..
=NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])
Use a Weekend number of 7 = (Friday & Saturday)
A1=start_date
A2=end_date
=NETWORKDAYS.INTL(A1, A2, 7, [holidays])
Holidays are optional
Networkdays.Intl allows the user to define any day as a "weekend"
It has 14 built in combinations of weekends
eg: Weekend number values indicate the following weekend days:
Weekend number Weekend days
1 or omitted Saturday, Sunday
2 Sunday, Monday
3 Monday, Tuesday
4 Tuesday, Wednesday
5 Wednesday, Thursday
6 Thursday, Friday
7 Friday, Saturday
11 Sunday only
12 Monday only
13 Tuesday only
14 Wednesday only
15 Thursday only
16 Friday only
17 Saturday only
As well as allowing a string to define custom weekends
eg: 1010100 Will define Monday, Wednesday and Friday as weekends
eg: 0101010 Will define Tuesday, Thursday and Saturday as weekends