If countif array formula
-
Hi Isaac, I am struggling here and hope you can help. I am trying to see if the value in one cell appears in any part of the string in another cell, eg Does WASHING MACHINE (stored in cell A1) appear anywhere in AUTOMATIC WASHING MACHINE AW123 (in B2) and if it does to return WASHING MACHINE. I have managed this with the following: =IF(COUNTIF(B1,"**"&A1&"**")>0,"A1","Nothing") Now what I want to do is check for multiple values ie A:A not just A1. I tried {=IF(COUNTIF(B1,"**"&A:A&"**")>0,"Found","Nothing")} as I couldn't work out how to tell it to return the matching value so thought I'd try to get it to tell me it had found it at all, but it only comes back "Found" if the value is in A1. Am I way off with my array formula? I only worked out I might need one from reading other answers posted here. I don't know if you use Access but if there is an easier way to do this in that then feel free to make suggestions there. I hope you can help as I have googled all the questions I can think of!
-
Answer:
To be honest with you I rarely use Array formulas - not because I think i am smarter and have found better way, just because are complicated, take forever to calculate in many cases, depending on rows/columns used (can really kill a workbook). How about just something simpler; this works for me I tested it according to the kind of situation you describe: =IF(COUNTIF($B$1:$B$1000,"*"&A1&"*")>0,A1,"Nothing")
Miningco.com Visit the source
Related Q & A:
- How to post an array of complex objects (that has an array of complex objects) with jQuery?Best solution by Stack Overflow
- how can i remove an array from an array?Best solution by Stack Overflow
- Where did formula 1 get its name from?Best solution by Yahoo! Answers
- In which malls (multiplexes) or sports bar is Formula 1 screened in Mumbai?Best solution by Yahoo! Answers
- What are some of the specific criteria for Formula One?Best solution by Miningco.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.