Hi,
I'm using the following SUMPRODUCT formula to emulate a countif with multiple criteria functionality.
The paramaters are:
Column B contains dates
Column N contains an Item ID number
Cell H13 is a date
Cell H14 is a date
=SUMPRODUCT((B1:B9885>H13)*(N1:N9885=B14))-SUMPRODUCT(B1:B9885>H14)*(N1:N9885=B14))
So, the formula returns the number of times the Item ID occurs between the two specified dates.
If I have a third column containing customer names, is it possible to modify to above formula to return the number of times the Item ID occurs between the two specified date, but only for unique customers
For example,
CUSTOMER ¦ ITEM ID
Name1 ¦ 999
Name1 ¦ 999
Name2 ¦ 999
Name3 ¦ 999
Name2 ¦ 999
Name3 ¦ 999
The formula should return 1, when looking for Name1 and 999 assuming the above information is within the specified date range.
I could probably do this in VBA, but would rather use a formula.
Thanks.
I'm using the following SUMPRODUCT formula to emulate a countif with multiple criteria functionality.
The paramaters are:
Column B contains dates
Column N contains an Item ID number
Cell H13 is a date
Cell H14 is a date
=SUMPRODUCT((B1:B9885>H13)*(N1:N9885=B14))-SUMPRODUCT(B1:B9885>H14)*(N1:N9885=B14))
So, the formula returns the number of times the Item ID occurs between the two specified dates.
If I have a third column containing customer names, is it possible to modify to above formula to return the number of times the Item ID occurs between the two specified date, but only for unique customers
For example,
CUSTOMER ¦ ITEM ID
Name1 ¦ 999
Name1 ¦ 999
Name2 ¦ 999
Name3 ¦ 999
Name2 ¦ 999
Name3 ¦ 999
The formula should return 1, when looking for Name1 and 999 assuming the above information is within the specified date range.
I could probably do this in VBA, but would rather use a formula.
Thanks.