I have a form with 5 possible teams listed for each person. Each Team has an activation and deactivation date. I have used the DateDiff Function on each team's dates to calculate the number of days each person worked on each team.
However, I would like to calculate the total days worked on all teams. I have one field for this answer. But I cannot figure out how to get it to realize that when days overlap, do not count them more than once.
For example,
Team 1, activate date (4/1/2003), deactivate date (5/1/2003)...Total: 30
Team 2, activate date (4/15/2003), deactivate date (5/15/2003)...Total: 30
Team 2, activate date (5/16/2003), deactivate date (5/31/2003)...Total: 15
I cannot just add these days together for answer of 75 because as you can see some of the days (4/15/2003-4/30/2003) overlap on two teams. So the real answer should be 60. How can I get this to watch for possible overlap?
Any suggestions? I am desperate.
Thank you so much!!!!
However, I would like to calculate the total days worked on all teams. I have one field for this answer. But I cannot figure out how to get it to realize that when days overlap, do not count them more than once.
For example,
Team 1, activate date (4/1/2003), deactivate date (5/1/2003)...Total: 30
Team 2, activate date (4/15/2003), deactivate date (5/15/2003)...Total: 30
Team 2, activate date (5/16/2003), deactivate date (5/31/2003)...Total: 15
I cannot just add these days together for answer of 75 because as you can see some of the days (4/15/2003-4/30/2003) overlap on two teams. So the real answer should be 60. How can I get this to watch for possible overlap?
Any suggestions? I am desperate.
Thank you so much!!!!