
Originally Posted by
Alxis
=SUMPRODUCT((Data!$AA$2:$AA$100=$A$1)*(Data!$B$2:$B$100="Y")*(Data!$C$2:$C$100))
(Where A1 contains the date I want to match)
...
BUT...it keeps returning a 0 value!....Any help please!!
Based on your original formula the issue could be either
a) dates in AA are not true dates (or conversely they are but A1 is not)
b) values in B contain leading or trailing spaces
To determine which... what do the below return ?
If the first (date) returns 0 and assuming ISNUMBER(A1) returns TRUE then try:
if the ISNUMBER on A1 returns FALSE then reverse the logic and move the +0 to the criteria
If B returns 0 then try:
If both COUNTIFs returned 0 then obviously combine the two.
In the above I have assumed values in C to be numeric and am thus not coercing (so as to reduce risk of coercion errors)
Note: the leading/trailing space is assumed - the issue could be related to CHAR(160) but we won't know until you report back re: above tests
Bookmarks