Originally Posted by
dosydos
Thank you for the reputation, and im glad it worked.
Quick explanation of what is happening in formula:
It is creating a Matrix based on 2 arrays. Think of this like a table with 2 columns, where the amount of rows is based on the amount of Data in your column B and C. The first column is based on logic ($B$2:$B$15<=$A3) while the second column is based on logic ($C$2:$C$15>=$A3).
Lets use your date in A3 as an example November 12th 2019. It takes this date and compares it to B2 first. Because 11/12/19 is greater than 11/11/19 which is in B2 it puts a 1 in column one row one of your Matrix as seen below. It then compares A3 to B3. This has the same result so it puts a 1 in column one row two of your matrix. It continues this down column B. If the logic is False, then it returns a 0. so using your data for cell A3 the matrix for your first logic looks like {1,1,1,1,1,0,0,0,0,0,0,0} It then compares A3 to column C logic. Again return 1 if true, and 0 if False. the result looks like {1,0,1,1,1,1,1,1,1,1,1,1}. I put a Multiplication sign between the two arrays in the original formula so now your formula results look like this:
{1,1,1,1,1,0,0,0,0,0,0,0} *{1,0,1,1,1,1,1,1,1,1,1,1}
This returns the values of {1,0,1,1,1,0,0,0,0,0,0,0}. Which when you sum up = 4.
Bookmarks