I have a sales report that includes similar products. The similar products include either "14g" or "14g Trim/Shake" in the cell I am referencing. I can use the search function to pull everything that includes "14g" in the cell, but I want to exclude the
ones that also include "Trim/Shake" in them. How would I do this?
This excludes "Trim/Shake" while accessing cells in the range A2:A10. The formula returns the values: {"14g", FALSE, FALSE, "14g", "24g", "Trim 14g", "15g Shake", FALSE, "Shake 14g"}
In case you wish to use the formula to count the number of cells in A2:A10 which include "14g" but EXCLUDE "Trim/Shake", use below array formula in cell C2: