excel - Compare 2 columns using wildcards -


i have 2 columns

column 1: long hairs hai hello hairs long neck  column 2: long hair 

i'm using following formula, doesn't work:

=countif(a1;"*"&$p$1:$p$2&"*") 

what have able select somehow cells column 1 (it has phrases in each cell) contain value range (using wildcards). cannot use somthing {"hair","long"} - need range.

please advice, have searched here lot, nothing seemed work. if relevant - i'm using cyrllic words , phrases in these columns.

the countif formula, using range criteria, return array of values. need sum results. e.g:

=sum(countif(a1,"*" & p1:p2 & "*")) 

confirmed holding down ctrl+shift while hitting enter.

or, entered normally:

=sumproduct(countif(a1,"*" & p1:p2 & "*")) 

with data in column a, criteria in column c, , formula in column b, using variation:

=sumproduct(countif(a1,"*"&$c$1:$c$2&"*")) 

we see following result:

enter image description here


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -