I am attempting to count the number of unique occurrences of an order number between a given date range, which i have successfully achieved using the code below ;
Column A = Date
Column B = Order Number
Cell W3 = From Date
Cell X3 = To Date
{=SUMPRODUCT(IF((A$2:A$10000<=X3)*(A$2:A$10000>=W3),
1/COUNTIFS(A$2:A$10000, "<="&X3,A$2:A$10000, ">="&W3,
B$2:B$10000,B$2:B$10000), 0))}
My issue is that i want to add another crietria which is held in Column U, that value being 'F' for arguments sake. I have tried to break this formula into bite size chunks to understand exactly what it is doing, but it is beyond me.
As you can see from the screen shot, there are 7 unique order numbers between the date range shown in Cell W3 to Cell X3 the result showing in Cell Y3 as per my formula.
I wish to add another formula that counts the same dataset with any row that has the value of 'F' in column U the result would be 1 as per cell Z3 highlighted in red, which i have manually entered.
Can anyone advise please.