+ Reply to Thread
Results 1 to 3 of 3

Doing a Find on a " " returns a #Value

  1. #1
    Registered User
    Join Date
    03-19-2021
    Location
    Florida, USA
    MS-Off Ver
    Office 365
    Posts
    3

    Doing a Find on a " " returns a #Value

    I have a list of strings that I copy pasted to excel and when I do a find for a " " (space) character, it returns me a #Value. The formula I used is: =FIND(" ", A1)

    Here is what I have tried:
    1. Copied the strings and pasted them as Values - Result: Returning #Value
    2. Converting the rows of cells into "Text" - Result: Returning #Value
    3. Used Search(" ", A1) - Result: Returning #Value
    4. Removed all the carriage returns and cleaned up the string by using formula: =CLEAN(TRIM(SUBSTITUTE(SUBSTITUTE(A1,CHAR(13),""),CHAR(10),", "))) - Result: Returning #Value
    5. Now I typed the exact same string by hand and it returned me the position number

    I can't understand where this went wrong. Is there something that I am missing? I would greatly appreciate some help on this. Thanks in advance.

    List of Strings are (Please note that for some reason when i publish this post, "*" is replacing " " character and I am not sure why):
    Please Login or Register  to view this content.
    Last edited by thecrazyguy; 01-07-2022 at 02:26 PM.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,393

    Re: Doing a Find on a " " returns a #Value

    Which space character are you searching for? Are you searching only for the standard 32 code, or are you including the 160 space character? My guess is (especially where pasting the text to the forum changed the space character) is that you are searching for the 32 space character, but you actually have 160 space characters. (For that matter, a quick check of a UNICODE data base suggests there are up to 17 or so possible space characters).

    I would probably start with something like =UNICODE(MID(text,7,1)) and see what code number one of the space characters returns. Once you know what space character you are searching for, then you can use =FIND(UNICHAR(number),text) to find the correct space character.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    03-19-2021
    Location
    Florida, USA
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Doing a Find on a " " returns a #Value

    Yes you are correct. I removed the 160 character space and now I am able to do a find. Thanks for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] ".Find" Returns Run-time error '91': if the Item Is Not Found.
    By Tegglet in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-28-2021, 10:34 AM
  2. Replies: 11
    Last Post: 06-05-2020, 02:08 AM
  3. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  4. [SOLVED] Nested HLOOKUP returns "FALSE" in cell where result should be "0.00"
    By gammccubbin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2016, 09:49 AM
  5. [SOLVED] IF Statement Evaluates as "TRUE" but Returns "FALSE" Value (Excel 2007)
    By Simcik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2014, 12:43 PM
  6. [SOLVED] Range.find returns "Nothing" in error, not sure of cause
    By enphynity in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-14-2013, 04:00 PM
  7. Replies: 5
    Last Post: 06-26-2006, 09:23 PM

Tags for this Thread

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