How can I modify the formula below so that it counts the word "Search" =SUMPRODUCT(--(Date1>=Orders!$H$3),--(Date1<=Orders!$I$3),--(Purpose=A2))