+ Reply to Thread
Results 1 to 3 of 3

Removing error code #VALUE! after using FIND

  1. #1
    Registered User
    Join Date
    09-01-2007
    Location
    St Neots, UK
    Posts
    11

    Removing error code #VALUE! after using FIND

    I am using FIND successfully to look for a particular name that may of may not be in a string containing many names.

    If the name is found I get a number representing the position of the first letter of the particular name. I can easily change this yp yjhr rquired value 1.

    If the name is not found I get "#VALUE!".

    I want to get rid of the "#VALUE!" and leave the cell blank but it is obviously not stored as simple text.

    Any ideas?
    Last edited by djchapple; 09-04-2011 at 11:09 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Removing error code #VALUE! after using FIND

    With Excel 2003 and earlier;
    Nest your formula inside an IF and ISERRROR like so
    IF(ISERROR(your formula),"",your formula)

    Excel 2007 and later
    Use IFERROR
    =IFERROR(your formula,"")
    Is that what you are looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    09-01-2007
    Location
    St Neots, UK
    Posts
    11

    Re: Removing error code #VALUE! after using FIND

    Quote Originally Posted by ChemistB View Post

    Excel 2007 and later
    Use IFERROR
    =IFERROR(your formula,"")
    Is that what you are looking for?
    Thanks for the suggestion.

    Ar present I am at my daughter's house si I will give it a try the midddle of next week.

    Edit

    I couldn'i wait so long so I sneaked upstairs and got the laptop out.

    AND ............it worked a treat.

    many thanks.
    Last edited by djchapple; 09-04-2011 at 11:08 AM. Reason: Impatience

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1