+ Reply to Thread
Results 1 to 3 of 3

Combining Formula Search/Replace

  1. #1
    Registered User
    Join Date
    09-07-2010
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    12

    Combining Formula Search/Replace

    I need to be able to do this: Take the value in C2 and tell me if that value is anywhere in cell E2. If it is in E2, perform a FIND with C2 value in only the E2 cell, and REPLACE with "" (blank). This is what I have so far. =IF(SEARCH(C57,E57,1) > 0,"Yes","no")

    Can anyone help me out with this?
    Last edited by Delkath; 09-07-2010 at 03:58 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: Combining Formula Search/Replace

    Maybe all you need is (in a new cell):

    =SUBSTITUTE(E2,C2,"")

    this will replace the string in C2 if it exists in E2 with a null... otherwise it leaves it alone.
    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.

  3. #3
    Registered User
    Join Date
    09-07-2010
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Combining Formula Search/Replace

    Wow, much more simple then the route I was going and it worked perfect. Thanks NBVC!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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