I need a formula that will count the unique values in col G if col A and H match.
Example:
Col A is the ID
Col G is the Document
Col H is the timing (month end date)
I need a formula in cell S2 that will tell me how many unique Documents in Col G belong to the ID in cell A2 for the timing in cell H2.
I tried =SUMPRODUCT(--($A$2:$A$1713=A2),--($G$2:$G$1713=G2),--($H$2:$H$1713=H2)) and this was working for a bit...or so I thought. But it's not working now.
I also tried =SUM(COUNTIFS($A$2:$A$1713,A2,$H$2:$H$1713,H2)) but this just returns the number of times these appear in the list.
I attempted to attach a file but the paperclip won't open to allow me to do that. So, I've put the data below. I hope someone can help. Thanks.
ID Document Timing Formula Result desired
ID1234 15 01/31/17 4
ID5678 2 01/31/17 1
ID1234 15 01/31/17 4
ID5678 2 02/28/17 1
ID5678 99 02/28/17 2
ID1234 15 01/31/17 4
ID1234 15 02/28/17 1
ID1234 15 01/31/17 4
ID1234 16 01/31/17 1
ID5678 99 02/28/17 2
Bookmarks