+ Reply to Thread
Results 1 to 8 of 8

extract text :keep the word in front of "apple", after "apple" delete all word

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    extract text :keep the word in front of "apple", after "apple" delete all word

    Dear All

    Column A contain text apple, after vba code , the answer should as coloum B

    That is after VBA code
    keep the word in front of "apple", after "apple" delete all word

    Our attached file with vba don’t work. Please help

    Thanks
    Tom
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: extract text :keep the word in front of "apple", after "apple" delete all word

    Hello Tom,

    Please Login or Register  to view this content.
    Or:
    Please Login or Register  to view this content.
    Last edited by HSV; 06-03-2018 at 10:36 AM.
    Kind regards, Harry.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: extract text :keep the word in front of "apple", after "apple" delete all word

    Also can be done with a formula
    Enter formula in B1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Or
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 abcdeappleiamstupid abcdeapple
    2 defgaappleiam a boy defgaapple
    3 apcdeapple apcdeapple
    4 dddddappleihave a dream dddddapple
    Last edited by AlKey; 06-03-2018 at 10:53 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: extract text :keep the word in front of "apple", after "apple" delete all word

    hi attached will file, if we separte one row ,,,some row ..the vba code cannot work. pls help

    many thank
    tom
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: extract text :keep the word in front of "apple", after "apple" delete all word

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: extract text :keep the word in front of "apple", after "apple" delete all word

    hi ..thank for your help after add the code, the attached file dont work
    is it the right place to add,pls help
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: extract text :keep the word in front of "apple", after "apple" delete all word

    Hello,

    delete:
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: extract text :keep the word in front of "apple", after "apple" delete all word

    perfect and good job. Thank you

+ 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. Replies: 7
    Last Post: 10-16-2017, 07:25 PM
  2. [SOLVED] If a cell contains text "apple" return "apple"
    By 99problems in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-30-2016, 11:12 PM
  3. =IF(Q5="Apple Sauce",List1," ") - #Value Error ???
    By zenvious in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2015, 06:32 AM
  4. Find "apple" and "orange" in one search
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-15-2014, 10:38 AM
  5. [SOLVED] If Not ActiveSheet.Range("A1").Value Like "apple" Then MsgBox "Error"
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-18-2014, 02:16 PM
  6. [SOLVED] How do I convert text ie apple to string "apple" in excel or VBA?
    By dav_mark in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-21-2013, 06:05 PM
  7. Replace numbers with Text ("1" to "Apple", for example)
    By pilotwings64 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2008, 06:56 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