excel - How to match text string in a cell approximately -


i've got formula

=iferror(index('[fishing contact list july 2015.xlsm]places'!$a$2:$a$65, small(index(row($1:$64)+('[fishing contact list july 2015.xlsm]places'!$q$2:$q$65="a"&'[fishing contact list july 2015.xlsm]places'!$b$2:$b$65>="fishing")*1e+99, , ), row(1:1))),"no active fishing places") 

which designed in workbook in column b word " fishing" , return names of fishing places written in column if in column q has been written , in column b text matches word fishing.

the problem having in column b there not text fishing. there often, "fishing/lakes" or "fishing/saltwater" example. need way of using word "fishing" find match (as using in column q) without having individually write out words.

at moment returns "no active fishing places". if reverse >="fishing" <="fishing" value returned 0.

i have tried fitting match formula should have allowed me use "fishing*" did not seem work either).

thanks in advance

in place of potentially resource-heavy iferror set-up, it's preferable reference single helper cell counts number of expected returns. see here explanation if interested:

https://superuser.com/questions/812727/look-up-a-value-in-a-list-and-return-all-multiple-corresponding-values/812848#812848

for example, if use e1 purpose, enter formula in cell:

=countifs('[fishing contact list july 2015.xlsm]places'!$b$2:$b$65,"* fishing *",'[fishing contact list july 2015.xlsm]places'!$q$2:$q$65,"a")

edit: had put spaces after first , before second asterisk in "* fishing *", editor not allow otherwise. please remove these 2 spaces when paste formula excel.

your main array formula then:

=if(rows($1:1)>$e$1,"no active fishing places",index('[fishing contact list july 2015.xlsm]places'!$a:$a,small(if('[fishing contact list july 2015.xlsm]places'!$q$2:$q$65="a",if(isnumber(search("fishing",'[fishing contact list july 2015.xlsm]places'!$b$2:$b$65)),row('[fishing contact list july 2015.xlsm]places'!$b$2:$b$65))),rows($1:1))))

and copied down until start blanks.

also note rows more rigorous choice row generating small's k parameter:

http://excelxor.com/2014/08/25/row-vs-rows-for-consecutive-integer-generation/

regards


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -