I could not figure it out , so I decided to cheat
, and write a custom function.
a couple of things you need to know.
file must be saved as an .xlxm
dates must be sorted smallest to largest on sheets
copy the code below, open vba alt & F11.
click insert then module
paste the code into it
the name of the function is rollingcount and is under userdefined functions.
I attached the file that i was working with. if you click on the cell with the formula and then Fx you can see the required arguments.
i hope this helps, and if you need anything else just let me know.
Bookmarks