+ Reply to Thread
Results 1 to 14 of 14

Is there a formula or function that deletes a set of words?

  1. #1
    Registered User
    Join Date
    04-04-2012
    Location
    Raleigh
    MS-Off Ver
    Excel 2007
    Posts
    27

    Is there a formula or function that deletes a set of words?

    I'm looking to create a template that I paste data into but there are so many unnecessary words/cells.

    Find and replace and deleting cells is so time consuming.
    Please see attached, as I have no idea how to explain my query with only words.
    Attached Files Attached Files
    Last edited by jtmann; 02-14-2017 at 02:28 PM. Reason: I had written 'of' instead of 'or'.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Is there a formula or function that deletes a set of words?

    Please Login or Register  to view this content.
    http://stackoverflow.com/questions/9...based-on-color

  3. #3
    Registered User
    Join Date
    04-04-2012
    Location
    Raleigh
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Is there a formula or function that deletes a set of words?

    The color of the cells was simply to clarify which cells. I need to delete all cells that contain the words "Bottle", "Preservative Test Code", "# of containers to fill per sample", "Test Code" and "Preservative"

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Is there a formula or function that deletes a set of words?

    Formulas can only affect the cell they reside in, then cannot do anything to any other cells
    You would need VBA for that
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Is there a formula or function that deletes a set of words?

    Would "FIND AND REPLACE" (HOME tab, Find & Select) do the job ?

    No need for VBA.

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Is there a formula or function that deletes a set of words?

    This macro will search the entire sheet and clear the cells containing the terms in fndList

    Please Login or Register  to view this content.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Is there a formula or function that deletes a set of words?

    Quote Originally Posted by Logit View Post
    Would "FIND AND REPLACE" (HOME tab, Find & Select) do the job ?

    No need for VBA.
    From the 1st post on this....
    Find and replace and deleting cells is so time consuming.

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Is there a formula or function that deletes a set of words?

    But effective !


  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Is there a formula or function that deletes a set of words?

    Indeed, until there are dozens (or more) that you need to do

  10. #10
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Is there a formula or function that deletes a set of words?

    Its only time .....

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Is there a formula or function that deletes a set of words?

    indeed, but the more it needs to be done, the greater the chance of an error creeping in. Plus, if this is a regular task (daily, weekly or monthly), it can become onerous and frustrating

  12. #12
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Is there a formula or function that deletes a set of words?

    Ok .... "uncle" .... you win.


  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Is there a formula or function that deletes a set of words?

    Wasnt a contest was an interesting discussion on the merits of manual vs automated - and you gave some good code to do that

  14. #14
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Is there a formula or function that deletes a set of words?

    Thanks ! Appreciate the compliment.

    * uncle *


+ 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. build a built in Excel function that deletes the first appearance of that string
    By starlev in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2016, 06:25 AM
  2. Replies: 5
    Last Post: 09-02-2014, 03:49 PM
  3. Function Multivlookup deletes duplicates...
    By aucho in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-08-2014, 05:26 AM
  4. [SOLVED] looking formula for Extract Specific WORDs in existing LONG Words
    By santosh226001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-07-2013, 08:21 AM
  5. a function that deletes all rows with no value in a certain column?
    By dunndealpr in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-06-2013, 04:59 PM
  6. Formula Deletes upon Clearing data from cells
    By ebner20 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-23-2013, 09:12 PM
  7. Formula Deletes upon Clearing data from cells
    By ebner20 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-23-2013, 12:09 AM

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