I have a data set where I am using a "countifs" function to count entries based on ID and date range. I need to integrate another data set with a unique format, but some of the same columns, and then ONLY count unique entries based on ID, date range, and exclude entries based on a third criteria (appointment number) that also have the same ID and appointment number in the first set of data. I cannot just combine the two data sets and remove duplicates. Hope this makes sense.
I can't copy the file here as it is proprietary, but to simply and boil it down I basically have the following data set:
The 2nd data set (I formatted it the same for simplicity) would be like this:
I need a formula that references a cell with the ID, and then counts the unique entries in the second data set where the Number column is not found in the first data set. So for "Aa0001" it would exclude the first two entries, and count everything highlighted yellow, and for "Bb0001" it would exclude the first two entries and count everything highlighted in blue.
Many thanks in advance for your help!
I can't copy the file here as it is proprietary, but to simply and boil it down I basically have the following data set:
The 2nd data set (I formatted it the same for simplicity) would be like this:
I need a formula that references a cell with the ID, and then counts the unique entries in the second data set where the Number column is not found in the first data set. So for "Aa0001" it would exclude the first two entries, and count everything highlighted yellow, and for "Bb0001" it would exclude the first two entries and count everything highlighted in blue.
Many thanks in advance for your help!