To get a unique count in this manner a Frequency Array would arguably suit best.
Before continuing however I would reiterate the point regards Dynamic Source Range.
First create a Defined Name as follows:
We can then, if we wish, adjust your existing SUMPRODUCTs to utilise this smaller/dynamic range, e.g:
From the above you should be able to work out the remainder of the existing SUMPRODUCT calcs
(i.e. modify the >= date for the columns, modify the 8 (Col J at source) in the final index to reflect the appropriate column for rows 19 & 21 etc...)
In terms of your unique count...
Note the Array entry requirement. If the Array has been set correctly the above will appear encased within { }
(these can not be added manually)
The formulae in row 29 can be copied to rows 31 & 33, however, yo uwill need to modify your INDEX column 8 (test re: K29) as appropriate (as per the SUMPRODUCT example earlier).
Remember: When you modify an Array you must remember to confirm the alteration with CTRL + SHIFT + ENTER so as to reset the Array successfully.
I'm afraid I can't create your file for you as I am at work but the above should suffice.
Bookmarks