Dear Excel Community,
How can I check if a date range passes through a month and give out the number 1 if it does.
Im an intern at a company and every month i have to give a report for the workers council. In this report I have to count the number of interns and bachelor/Master thesis students for any given month. Any intern that is active in a month gets counted.
I already tried everything including chat gpt but its not working. The biggest problem is:
The trigger point for the count. Of course you can check if a date lies in a certain zone. but not if it passes through. Somebody who starts his internship in september and ends in november also gets counted in my report but excel doesnt notice it since neiter his start date nor his end date are in october.
It doesnt matter if somebody passes through the whole month or just "touches" it on its first or last day. They have to be counted.
Please help
I get a report that looks like this. I already showed the results for you on how it should look for the month of october in the end in the column named "Count towards total":
How can I check if a date range passes through a month and give out the number 1 if it does.
Im an intern at a company and every month i have to give a report for the workers council. In this report I have to count the number of interns and bachelor/Master thesis students for any given month. Any intern that is active in a month gets counted.
I already tried everything including chat gpt but its not working. The biggest problem is:
The trigger point for the count. Of course you can check if a date lies in a certain zone. but not if it passes through. Somebody who starts his internship in september and ends in november also gets counted in my report but excel doesnt notice it since neiter his start date nor his end date are in october.
It doesnt matter if somebody passes through the whole month or just "touches" it on its first or last day. They have to be counted.
Please help
I get a report that looks like this. I already showed the results for you on how it should look for the month of october in the end in the column named "Count towards total":
abbreviation of the corporate branch | Name Manager | Name Intern | Start of Internship | End of Internship | | Count towards total |
| | | | | | |
ASD | | | | | | (2/3) |
| Manager A | Intern a | 15.10.23 | 20.02.24 | | 1 |
| | Intern b | 01.02.23 | 15.10.24 | | 1 |
| | intern a (thesis) | 15.10.23 | 20.02.24 | | |
| | | | | | |
| | | | | | |
| | | | | | |
DSF | | | | | | (1/3) |
| Manager B | Intern h | 01.04.23 | 01.09.23 | | |
| | Intern l | 01.04.23 | 01.08.23 | | |
| | intern k | 01.04.23 | 01.04.24 | | 1 |
| | | | | | |
| | | | | | |
| | | | | | |
GFD | | | | | | (2/1) |
| Manager C | Intern b | 01.06.23 | 01.05.24 | | 1 |
| | Intern d | 01.04.23 | 01.01.24 | | 1 |