Avatar of Howard Bash
Howard Bash
Flag for United States of America asked on

Excel 2007 In Cell Find function

I am using the find function to split cell strings into pieces.  It works fine (mostly),  unless the find fails in which case I get #NAME?  for the value.

Really would I am trying to do is something like this:
=if(Find("x",  G1, 1), "True Value", "False Value")

This sometimes gives the #NAME? value and so I refined the function to see where it is exploding and it is the FIND function, when it fails to find.

Any suggestions here would be greatly appreciated.

Thanks.

Visual Basic ClassicMicrosoft ExcelProgramming

Avatar of undefined
Last Comment
barry houdini

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Saurabh Singh Teotia

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
barry houdini

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Howard Bash

ASKER
Aren't these two suggestions the same?  The only difference I see is that the first one's functions are all lower case.

Thanks.
Saurabh Singh Teotia

Yes there are two same suggestions, I beat barry to it ;-)
 
barry houdini

I posted my suggestion before I saw that Saurabh had posted the same thing.....given that both are the same perhaps that's an indication that it's the best way to do it......if you want somrthing a little different try this
=IF(COUNT(Find("x",G1)),"True Value", "False Value")
No better, just different
regards, barry
Your help has saved me hundreds of hours of internet surfing.
fblack61
Howard Bash

ASKER
=IF(COUNT(Find("x",G1)),"True Value", "False Value")

So, in this expression, Find("x", G1))  will not cause an error if no "x" found?

I will be at it in morning and post my finding.

Thanks.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.