I have a sheet that is tracking all of the tasks users need to do in a year. They enter the recurrence of the task as Daily, Weekly, and Monthly. They also enter the Start Date and End Date (ex. 3/15/2023). I then create rows for each month the task is running. So 3/1/2023 - 5/31/2023 would have three rows (March, April, and May).
The issue comes up for the Weekly recurrence. If users select Weekly, they will be asked to pick what days of the week they complete the task, which is a multi-select picklist. If a users selects only one day (ex. Monday), the formula works fine. If the users selects more than one day (ex. Monday Tuesday), the formula gives a 0.
I have a formula on a column called "Project Allocation Days" that counts the number of times that the particular day name (ex. Monday) appears in the given month and year based on a separate sheet that is a basic date table, similar to those used in SQL, to track the number of hours per month that the user spends on this task.
The formula:
=COUNTIFS({day_of_week_name}, HAS(@cell, [Recurrence Day Names (weekly)]@row), {month_name}, HAS(@cell, [Month_]@row))
The Date Table:
Example of one that works and one that doesn't:
Can you help me figure out what I am doing wrong with the formula? I have tried using Contains, but still doesn't work.