I tried your formula above. OK. Perhaps I give you a bit of detail. I need to pro-rate a cost based per EE number and the same date range (which is variable). So if any employee has only one date range, I need it to return the number 2. The problem is when I have an employee who has several of the same date range. such as in the data above . One employee has two date ranges but are the same. For example Employee 17260035 worked for tow different managers from April 1 - September 8. I have a total costs of $100. I need something to count those date ranges per EE so 50% of the costs go to one manager and 50% of the costs go to another for that time frame. It could be 25%, 33%, etc.....it is variable.
[TABLE="class: cms_table, width: 283"]
<tbody style="border-collapse: collapse; border-spacing: 0px 0px; font-size: 13px; margin-bottom: 0px;">[TR]
[TD]PRI[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]Results S/B[/TD]
[/TR]
[TR]
[TD]10753605[/TD]
[TD]19-04-01[/TD]
[TD]19-10-18[/TD]
[TD] 1[/TD]
[/TR]
[TR]
[TD]17260035[/TD]
[TD]19-04-01[/TD]
[TD]19-09-08[/TD]
[TD] 2[/TD]
[/TR]
[TR]
[TD]17260035[/TD]
[TD]19-04-01[/TD]
[TD]19-09-08[/TD]
[TD] 2[/TD]
[/TR]
[TR]
[TD]17260035[/TD]
[TD]19-09-09[/TD]
[TD]19-10-18[/TD]
[TD] 2[/TD]
[/TR]
[TR]
[TD]17260035[/TD]
[TD]19-09-09[/TD]
[TD]19-10-18[/TD]
[TD] 2[/TD]
[/TR]
</tbody>[/TABLE]