Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Find exact string using formula (excel)

$
0
0

I'm trying to use FIND statement to find multiple strings in the context of a larger formula. The original formula I'm basing it off of is as follows:

=IF(ISNUMBER(FIND("INC",A1))," ","Y")

Obviously, this yields a Y if it finds whatever text in " ". However, I have many strings for which I'd like to check and they need to be exact; ie when I search INC and inc, I do not want Inc to be counted. So, I tried the following formulas.

=IF(ISNUMBER(FIND(OR("INC",inc"),A1))," ","Y")

=IF(SUM(COUNTIF(A1,"* INC*","* inc*}))," ","Y")

The second one works best, but it also counts "Inc" as a match. Any suggestions?


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>