EliseFreedman
Programmer
I am trying to find out if each of the rows in my spreadsheet satisfy a combination of criteria. The first of those is whether the date in the row falls within a chosen date range and also whether it satisfies another criteria for example a referral type. I am only interested if the row satisfies all the criteria.
I was using the formula
I2 is the cell with the date in it, A21 is the cell with the start date for the search, A22 is the cell containing the end date for the search, M2 is the cell specifying the type of referral for that record and A15 is the cell where you type in which referral you wish to serach for.
Even though the row meets all of the criteria I am still getting a value of 0. What am I doing wrong?
I was using the formula
Code:
=SUMPRODUCT(--(I2:I2>=$A$21),--(I2:I2<=$A$22),--(M2:M2=$A$15))
Even though the row meets all of the criteria I am still getting a value of 0. What am I doing wrong?