Hi,
I have an array formula in a cell to count the number of unique dates based on criteria in another cell:
=SUM(IF(FREQUENCY(IF(DATA!$H:$H="JC",DATA!$I:$I),DATA!$I:$I),1))
So if "JC" is in cells in column H, then the number of unique values (in this case dates) will be counted in column I.
The only trouble I have is that for some reason, the result this gives me is 6, when there are actually only 5 unique dates. It is counting one extra for some reason.
So I came to the conclusion that there must be one extra date that I have missed. But using the filter function only lists 5 unique dates (+blanks) AND I have counted them myself and there are only 5. This lead me to think that it must be counting the blanks as a unique value as well. However, I have the exact same function to count dates with "CW" in column H and there are also blanks in the date column yet the formula doesn't seem to count the blanks and the value it gives me is correct.
Does anyone have any idea why this might be happening?
Thanks for your response in advance.
I have an array formula in a cell to count the number of unique dates based on criteria in another cell:
=SUM(IF(FREQUENCY(IF(DATA!$H:$H="JC",DATA!$I:$I),DATA!$I:$I),1))
So if "JC" is in cells in column H, then the number of unique values (in this case dates) will be counted in column I.
The only trouble I have is that for some reason, the result this gives me is 6, when there are actually only 5 unique dates. It is counting one extra for some reason.
So I came to the conclusion that there must be one extra date that I have missed. But using the filter function only lists 5 unique dates (+blanks) AND I have counted them myself and there are only 5. This lead me to think that it must be counting the blanks as a unique value as well. However, I have the exact same function to count dates with "CW" in column H and there are also blanks in the date column yet the formula doesn't seem to count the blanks and the value it gives me is correct.
Does anyone have any idea why this might be happening?
Thanks for your response in advance.