+ Reply to Thread
Results 1 to 8 of 8

Remove Stop Words from a column containing 16000 rows of sentences

  1. #1
    Registered User
    Join Date
    10-29-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2013
    Posts
    4

    Remove Stop Words from a column containing 16000 rows of sentences

    Hi - Im trying to remove stop words from a column containing 16,000 rows of sentences. The n00b code I have is not working. Any ideas on how I could do this?
    Attached is the list of stop words. COlumn 'D' in my excel sheet had the stop words.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by alansidman; 10-30-2013 at 06:06 PM. Reason: code tags

  2. #2
    Registered User
    Join Date
    04-29-2013
    Location
    Ontario, Canada
    MS-Off Ver
    MS Office 2010
    Posts
    80

    Re: Remove Stop Words from a column containing 16000 rows of sentences

    Can you explain a bit more? What is the script supposed to do when it encounters a "stop word" and are these stop words the values listed in column A?

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Remove Stop Words from a column containing 16000 rows of sentences

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (Please note I have added the code tags for you. Please read all the rules and follow them in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    10-29-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Remove Stop Words from a column containing 16000 rows of sentences

    The script is supposed to replace the stop word with a " ". The stop words are present in Column D. Column A has the 16000 rows of sentences.

  5. #5
    Registered User
    Join Date
    10-29-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Remove Stop Words from a column containing 16000 rows of sentences

    Oops. My bad.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Remove Stop Words from a column containing 16000 rows of sentences

    Would you post some sample data of what Column D looks like so we can give you an appropriate response.

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  7. #7
    Registered User
    Join Date
    10-29-2013
    Location
    Seattle
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Remove Stop Words from a column containing 16000 rows of sentences

    Attached is a file called 'Sample Removal' which has the desired result. Column A has the list of sentences. Column B has the list of words I want to be removed from the sentence in Column A. Column C contains the desired result.
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Remove Stop Words from a column containing 16000 rows of sentences

    See the attached
    Attached Files Attached Files

+ 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. [SOLVED] How to manage number of words in sentences?
    By emil9216 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-01-2013, 04:25 AM
  2. Excel 2007 : Stop Excel from completing sentences
    By Bernt in forum Excel General
    Replies: 1
    Last Post: 07-20-2011, 04:59 AM
  3. List out words from sentences
    By ap_naveen in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-21-2010, 06:58 AM
  4. Split sentences into words
    By sparx in forum Excel General
    Replies: 5
    Last Post: 02-22-2006, 03:51 PM
  5. counting specific words:unique sentences
    By jen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2005, 08:05 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