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.

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

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

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 questionLog 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

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
Yes there are two same suggestions, I beat barry to it ;-)

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

=IF(COUNT(Find("x",G1)),"T

No better, just different

regards, barry

Your help has saved me hundreds of hours of internet surfing.

fblack61

=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.

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.

Get an unlimited membership to EE for less than $4 a week.

Unlimited question asking, solutions, articles and more.

Thanks.