B
bxb7668
I need to count the number of rows where column A contains the exact
value "Product" and column B contains the value "widget". By
"contains" I mean that it may be "Red widget" or "Widget stopper" or
"Blue widget thing" or may even be just "Widget". Searching this group
I came up with the sumproduct function but it does not seem to handle
"contains". I'm trying:
=SUMPRODUCT(--(A2:A156="Product"),--(B2:B156="*widget*"))
or
=SUMPRODUCT((A2:A156="Product")*(B2:B156="*widget*"))
Any suggestions?
Brian
value "Product" and column B contains the value "widget". By
"contains" I mean that it may be "Red widget" or "Widget stopper" or
"Blue widget thing" or may even be just "Widget". Searching this group
I came up with the sumproduct function but it does not seem to handle
"contains". I'm trying:
=SUMPRODUCT(--(A2:A156="Product"),--(B2:B156="*widget*"))
or
=SUMPRODUCT((A2:A156="Product")*(B2:B156="*widget*"))
Any suggestions?
Brian