I'm trying to search for instances of the partial text strings from tab A (Sample string to look for) in tab B (Data to Search). I've used the FIND function but I can't get the logic right to search the entire column in tab b.
Anyone?
I'm trying to search for instances of the partial text strings from tab A (Sample string to look for) in tab B (Data to Search). I've used the FIND function but I can't get the logic right to search the entire column in tab b.
Anyone?
Using ISNUMBER(FIND()) is returning an array of answers. Instead I'd use ISNUMBER(MATCH()) to find if it is in one of them.
Also, it's a good practice to declare row numbers in your ranges as you're otherwise searching all 1.04MM rows. While not much of an issue with a few formulas, you'll notice significant performance degradation with more than a few dozen of them.
=ISNUMBER(MATCH("*"&A2&"*",'data to search'!$A$2:$A$52,0))
If you insist on using your original logic, you could instead encapsulate the formula with SUMPRODUCT and test if >0.
=SUMPRODUCT(--ISNUMBER(SEARCH(A2,'data to search'!$A$2:$A$52)))>0
Last edited by daffodil11; 01-06-2015 at 06:46 PM.
Make Mom proud: Add to my reputation if I helped out!
Make the Moderators happy: Mark the Thread as Solved if your question was answered!
try
=ISNUMBER(MATCH("*"&A2&"*",'data to search'!A:A,0))
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Try this
=ISNUMBER(LOOKUP(25^25,SEARCH(A2,'data to search'!$A$2:$A$52)))
Row\Col A B 1Chassis Name (adjusted) PRP-3 ? 2pip-bb10-akr FALSE 3pip-bb10-ana FALSE 4pip-rr2-chi TRUE 5pip-rr2-fw FALSE 6pip-rr2-pen FALSE 7pip-rr2-sj TRUE 8sl-bb20-ams FALSE 9sl-dr10-dal FALSE 10sl-dr11-dal FALSE 11sl-gw1-pen FALSE 12sl-pe10-akr TRUE 13sl-pe10-albrm FALSE 14sl-rr10-lon TRUE 15sl-rr11-par.sprintlink.net TRUE
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Thanks - Daffodil11 and Martindwilson! it worked!
Hurray! Klondike bars for everyone!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks