Then I would use a different approach, first by making a new column (only
one!) with the formula on cell K18: =A18&B18&C18&D18&E18&F18&G18&H18&I18&J18.
As you can see, it makes the concatenation of all the cells on the row. Why
CONCATENATE function does not work with a range is beyond my understanding,
but we have to make with what we have, haven't we?
Next, I will use the following array formula (validate with Shift-Ctrl-Enter
to create curly brackets { } around the formula). It is using function FIND,
which returns the position of a character in a string, or an error if not. So
the formula is, if the range to use if K18:K19,
=SUM(NOT(ISERROR(FIND("m",K18:K19,1)))*NOT(ISERROR(FIND("h",K18:K19,1))))
One remark about column K. It works based on your description, but in case
"m" and "h" are more than one character, insert a separator like "-" between
two cells to avoid a situation where the concatenation of two cells create a
value that you do not want, like "zx" & "vy" would find "xv", while "zx" &
"-" & "vy" will work properly and will never FIND "xv".