Closed Thread
Results 1 to 2 of 2

Delete partial text

  1. #1
    Registered User
    Join Date
    09-02-2008
    Location
    Cincinnati
    Posts
    5

    Delete partial text

    I need to pull a text string from one column and move it over to a new column but if it has the word "Ingredients" in it I need to only copy the text before the word "Ingredients". My problem is that if the word "Ingredients" is not there I get the error #value!.

    The formula i am using is =LEFT(E2,SEARCH("Ingredients",E2)-1)

    Thanks.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    bnl552,

    Thread closed.

    Please read forum rules below. Duplicate posts are not permitted

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Delete partial text
    By bnl552 in forum Excel General
    Replies: 2
    Last Post: 09-02-2008, 08:20 PM
  2. Text Box name changing, macro to delete not working
    By NMullis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2008, 05:43 PM
  3. Delete date/time in all rows from a text
    By ramsdesk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-28-2007, 01:36 AM
  4. Entering text but not being able to delete it
    By spowell in forum Excel General
    Replies: 5
    Last Post: 05-01-2007, 04:06 PM
  5. Select & Delete text in TextBox1 also deletes text in TextBox2
    By heinousanus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-10-2006, 08:02 PM

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