K3 = SUMIF ($ D $ 3: $ D $ 12, "*" & J3 & "*", $ G $ 3: $ G $ 12). Where J3 is the cell containing the string to search. The result of the cell does not change.
The SUMPRODUCT function is one of Excel's special array functions.
SUMPRODUCT uses the range of cells as its argument together the items in the arrays, and then sums the results.
For the above example, enter the formula: K3 = SUMPRODUCT ((G3: G12) * (IFERROR (SEARCH ("shirt", D3: D12), 0)> 0)), then press Ctrl + Shif + Enter .
Note: Although the SUMPRODUCT formula is an array formula, it means you don't have to apply Ctrl + Shift + Enter in the usual case. However, in this case, you must use Ctrl + Shif + Enter or you will not get the correct results.
By doing the same thing for cell K4, Dexterity Software finds the total sales that satisfy items with the female characters . Good luck!