Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2007

Tip: Looking for answers? Try searching our database.

FIND function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff Klein - 15 Dec 2007 21:11 GMT
I am using the "find" function to locate a particular letter in a cell.
This works fine except when the letter does not exist in the cell.
Displayed in the cell is "#VALUE!" and is not useable.

Is there a way to
=if(find("G",A1,1) = "nothing found",A1,find("G",A1,1))
Dave Peterson - 15 Dec 2007 21:22 GMT
=if(iserror(find("G",a1,1)),"nothing found",find("G",a1,1))

will return either the string "nothing found" or the position of the first G in
A1.

You could also use =isnumber()

=if(isnumber(find(...)),"found it","not found")

> I am using the "find" function to locate a particular letter in a cell.
> This works fine except when the letter does not exist in the cell.
> Displayed in the cell is "#VALUE!" and is not useable.
>
> Is there a way to
> =if(find("G",A1,1) = "nothing found",A1,find("G",A1,1))

Signature

Dave Peterson

T. Valko - 16 Dec 2007 03:41 GMT
> Is there a way to
> =if(find("G",A1,1) = "nothing found",A1,find("G",A1,1))

Another one:

I assume you are looking specifically for the uppercase "G".

=IF(COUNT(FIND("G",A1)),FIND("G",A1),"Nothing Found")

I see that you're using the [start_num] argument to FIND. If you want to
look at the *entire* string you can just omit the [start_num] argument. If
you're using it thinking it *only* looks at the first character of the
string and that's what you want:

=IF(EXACT(LEFT(A1),"G"),1,"Nothing Found")

Signature

Biff
Microsoft Excel MVP

>I am using the "find" function to locate a particular letter in a cell.
>This works fine except when the letter does not exist in the cell.
>Displayed in the cell is "#VALUE!" and is not useable.
>
> Is there a way to
> =if(find("G",A1,1) = "nothing found",A1,find("G",A1,1))

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.