FalconFlyer
New Member
- Joined
- May 18, 2015
- Messages
- 30
I am trying to use SUMPRODUCT to find any cells that contain "ok". The cells may contain "ok, Last Item" or "ok", all of which I want counted. My formula is:
=(SUMPRODUCT(($K$2:$K$345="ok")*($M$2:$M$345="duplicate")))
The above will not include "ok, last item", but it does accurately count "ok".
=(SUMPRODUCT(($K$2:$K$345="ok*")*($M$2:$M$345="duplicate"))) - Added "*"
Calculates 0, even though there are 5 matching cells with "ok" and "ok, Last Item".
How do I fix this formula to make it work for both scenarios? Do I just have to break it into 2 separate formulas?
Thank you in advance.
=(SUMPRODUCT(($K$2:$K$345="ok")*($M$2:$M$345="duplicate")))
The above will not include "ok, last item", but it does accurately count "ok".
=(SUMPRODUCT(($K$2:$K$345="ok*")*($M$2:$M$345="duplicate"))) - Added "*"
Calculates 0, even though there are 5 matching cells with "ok" and "ok, Last Item".
How do I fix this formula to make it work for both scenarios? Do I just have to break it into 2 separate formulas?
Thank you in advance.