Forum Discussion
JohnTaylor20
Jul 04, 2022Copper Contributor
asdasdsadsa
ddfdsfdfdsfsdfsdf
JoeUser2004
Jul 04, 2022Bronze Contributor
Without trying to understand your formula, you might try (untested):
=SUMPRODUCT(ISNUMBER(FIND({"yes, Approved, Accepted, Correct, Done"},
LOWER(Table[comment])))*(YEAR(Table[date])=YEAR(TODAY()))
*(WEEKNUM(Table[date]+0)=WEEKNUM(TODAY())))
And if that does not work, change the comma to a semicolon in the array-constant, to wit: {"yes; Approved; Accepted; Correct; Done"}
And more flexibly, enter the strings into a contiguous column or row range, replace the array-constant with the range reference.
- JohnTaylor20Jul 04, 2022Copper Contributor=SUMPRODUCT(ISNUMBER(FIND({"yes;approved"},LOWER(Table[comment])))*(YEAR(Table[date])=YEAR(TODAY()))*(WEEKNUM(Table[date]+0)=WEEKNUM(TODAY())))
it didnt work, the result is 0- JoeUser2004Jul 04, 2022Bronze Contributor
JohnTaylor20 wrote: ``it didnt work, the result is 0``
Sorry to hear that. Hopefully someone else will have more constructive ideas. Good luck!
- SergeiBaklanJul 04, 2022MVP
Perhaps you mean
=SUMPRODUCT(--(MMULT( ISNUMBER(FIND({"yes", "approved"},LOWER(Table[comment]))), {1;1} ) > 0 ) * (YEAR(Table[date])=YEAR(TODAY()))* (WEEKNUM(Table[date]+0)=WEEKNUM(TODAY())))