Try this:
=IFERROR(ROWS(UNIQUE(FILTER($A$2:$C$18,($B$2:$B$18=$E2)*($C$2:$C$18>=F$1)*($C$2:$C$18<F$1+7)))),0)
You have enough variations on a theme now to be able to experiment yourself with others, I think.
This is not what your workbook seems to show, so I've set up another table handling what I think you mean. Again, though, you have enough now to be able to work out any further tweaks yourself. Obviously shout if you get into difficulty.
This thread really has been more than solved now, so please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.
Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
Bookmarks