+ Reply to Thread
Results 1 to 2 of 2

FIND function and spaces

  1. #1
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Rhode Island
    MS-Off Ver
    Excel for Mac 2011 and 2007 on PC
    Posts
    265

    FIND function and spaces

    Please Login or Register  to view this content.
    where the text

    Please Login or Register  to view this content.
    is entered in A2 returns 5

    don't quite get that. I would have thought it would return 4. There aren't any leading spaces I can see, but at least it returns something.

    When I input

    Please Login or Register  to view this content.
    it returns a VALUE# error.

    I assume it is having trouble dealing with the spaces but I'm not sure why.

    thanks for any thoughts,

    brian

    duh. solved my own problem. the 5 was from an extra space between the number and the street. now I need some quick code for combing out double spaces.
    Last edited by riwiseuse; 04-18-2011 at 02:18 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: FIND function and spaces

    You can try possibly:

    FIND("benefit",TRIM(A2))

    or

    FIND("benefit",CLEAN(A2))


    also note that FIND is case sensititve... SEARCH is the non-case sensitive alternative.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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