# 【質問内容】曜日の回数を算出
一つのテーブルに曜日のフィールド（Date型）をMultiplesel......

**URL:** https://www.nocode-faq.com/t/topic/685
**Category:** Adalo
**Created:** [2021 年 2 月 2 日午前 10:34 UTC](https://www.nocode-faq.com/t/topic/685 "2021-02-02T10:34:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Question\_user](https://avatars.discourse-cdn.com/v4/letter/q/53a042/32.png) [@Question\_user](https://www.nocode-faq.com/u/Question_user)
#### Post date: [2021 年 2 月 2 日午前 10:34 UTC](https://www.nocode-faq.com/t/topic/685/1 "2021-02-02T10:34:37Z")

</div>

【質問内容】曜日の回数を算出  
一つのテーブルに曜日のフィールド（Date型）をMultipleselectで一週間選択できるようになっていて  
その選択された曜日をFoumulaで曜日がいくつ選択されたか取得しようとしたのですが、うまくいきません。  
それとDate型のフィールドで日付を入力するとカレンダーに表示されるのですが、日付を一つのフィールドで複数選択できる方法はありますか？  
何かお知恵をお貸しして頂けますでしょうか？  
よろしくお願いいたします。

---

<div class="post-metadata">

### Author: ![Answer\_user](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@Answer\_user](https://www.nocode-faq.com/u/Answer_user)
#### Post date: [2021 年 2 月 2 日午前 10:34 UTC](https://www.nocode-faq.com/t/topic/685/2 "2021-02-02T10:34:38Z")

</div>

回答者１  
シフト管理などをするならば「ユーザー」と「日付」のテーブルを二つ作った方が良いかと思われます。  
リンクさせてカウントすればうまくいきます。  
そうするならば日付のテーブルは曜日ではなく日付そのものでも良い感じはあります笑

回答者２  
もう少し、勤怠管理などに使うようであれば、以下参考程度ですが、、、、  
曜日よりも時間帯が必要だと思うので、  
DATETIME\_DIFF(Date, Date2, ‘y’)  
関数で期間の計算ができます。  
Supported unit specifiers for DATETIME\_DIFF

> **[Supported unit specifiers for DATETIME\_DIFF](https://support.airtable.com/hc/en-us/articles/226061308-Supported-unit-specifiers-for-DATETIME-DIFF)**
>
> The DATETIME\_DIFF() function will allow you to calculate the difference between two different datetimes in specified units. Each specifier has a corresponding abbreviation which will work the same ...

細かい説明は、省きますが、こちらでTemplateがあるので、コピーすれば勤怠管理であれば利用できるかと思います（笑）

> **[Employee Scheduling Template - Free to Use | Airtable](https://airtable.com/templates/professional/exphSbhght6yyULC9/employee-scheduling)**
>
> Keep track of employees' contact details, their availability, and their weekly schedules with this template.

## 参考URL

> **[Supported unit specifiers for DATETIME\_DIFF](https://support.airtable.com/hc/en-us/articles/226061308-Supported-unit-specifiers-for-DATETIME-DIFF)**
>
> The DATETIME\_DIFF() function will allow you to calculate the difference between two different datetimes in specified units. Each specifier has a corresponding abbreviation which will work the same ...

> **[Employee Scheduling Template - Free to Use | Airtable](https://airtable.com/templates/professional/exphSbhght6yyULC9/employee-scheduling)**
>
> Keep track of employees' contact details, their availability, and their weekly schedules with this template.
