Macro To Remove 650 Stop Words From Excel Text?
May 24, 2014
I'm working on a text prediction project classifer model and would like to remove the stop words before I stem the document to get the important topics.
I found the thread that Stanley solved really useful. However, I have a lot more stop words that I'd like to remove, which I couldn't make work with the previous code (I'm completely new to this!)
View 9 Replies
ADVERTISEMENT
Jul 6, 2012
I have an excel sheet with one column having one sentence in each cell of the column (rest all the cells of the sheet are vacant).
Now, i want to 'find' and 'remove' a list of pre-specified stop words such as "a", "the", "it", "of", etc. from every sentence and then get the resulting sentence pasted in the adjacent columns cell.
(Also for example the word "a" should be removed only when it is a separate word and not part of a word. Likewise for other stop words).
Enclosing a test file : shashank_test.xlsx
View 7 Replies
View Related
Jan 17, 2013
I'm having a 6000+ records, (contacts DB) exported in Excel 2003 format from MS Outlook.
Except the "First" and "LastName", all other contact elements are in the field "Notes" (which is the BZ column according to the exported outlook layout) multiplied by 6469 (records in total)
Useful information are included !!!
I'll give an example of a record...
Column: BZ, Row: 543 says --> "2110000000-6989000000, 1TOK_TER:17-11-010(25 DAYS LESS),
KATERINA 25 (MANTAS KALNNNNN_HYPERTENSION)1000-150, W:95_105, , HR THE 16wks_US NEFRON OK,
NT OK_B EPIP OK(GOLF BALL)_KAMPILI ORIAKI(DIAITA)_DOPPLER OK, O+,TEST OK(TOX_), , , , , , "
Now, I want every time to take the part of the text says "TER:something..." (part of which is date, but not every time with the known format dd-mm-yyyy, as you see here is yyy, followed by something else, with parenthesis here and maybe more data) and copy it in a new cell..., e.g:CO Column, same Row...
Above and every field which by the way is formatted as General (and it is text mainly) are made by merging older excel fields where data laid here and there, that's why you see the commas...with the method of a module with the following code:
Function MyMerge(Rng As Range)
For Each Cell In Rng
Temp = Temp & Cell.Value & ", "
Next Cell
Temp = Mid(Temp, 1, Len(Temp) - 2)
MyMerge = Temp
End Function
Note1:Records with the above string (TER:dd-mm-yyy) are 771 from 6469.
Note2: As an alternative solution I can see an extraction of the TER:dd-mm-yyy string and the copy in a new place, like the:CO Column, same Row...
View 9 Replies
View Related
Feb 24, 2012
I have a simple macro that copies data from worksheet to another. I only want this macro to be run once per day by the user. One of the cells that gets copied is the value found in the formula "=today()". My thought is that the macro could look for the existance of the current date in the pasted data (meaning the macro has already been run once today), and if the date = today, then a message pops up warning the user that the macro has already been run once today, and ask if they're sure they want to continue.
Any easy way to accomplish what I'm attempting to do? The current date gets pasted into a worksheet name "PriorDay" in cell C5.
View 2 Replies
View Related
Feb 23, 2012
Formula to remove the words " Sales Rep"
this is the original word:
Atlanta Sales Rep
I want the formula to remove " Sales Rep"
View 4 Replies
View Related
May 3, 2014
I am trying to use the simplest code possible (being a novice) to execute a macro which makes a copy of Cell A1:A4 and paste its values to Cells B1:B4 if cell B5=1 (or whatever). The Macro with copy and paste works (I recorded it and in my testing it was ok). And also the function, that contains If-Then status of cell B5, works and calls correctly the Macro.
Yet when the macro is called by the function (=CopyMyCells(B5)), the Macro (MacroCopy) runs - I tested this with a Msgbox - but stops just in doing what I need, i.e. in doing the copy-paste process. Here the code which is placed in a module of the proper Worksheet (Excel 2003, on WinXPSp3):
[Code] ........
View 6 Replies
View Related
Feb 3, 2014
I recorded a simple Macro in Excel 2010 to sort data by the first Column, heading "Ref". I have assigned CTRL + e as the keyboard shortcut for this.
My sheet contains a number of hidden rows (as I hide rows when I have finished working on that issue).
When I run the macro, it does sort by the number of Column A, but also, the hidden rows are then shown again.
I realise I could just click on the A-Z sort button to stop this happening, but I really like being able to use keyboard shortcuts, which is why I tried the macro route.
I wondered if it is possible for the macro to ignore hidden rows?
Code:
This is the macro:
Sub SortByRef()
'
' SortByRef Macro
'
' Keyboard Shortcut: Ctrl+Shift+E
[Code]....
View 1 Replies
View Related
Jun 3, 2014
I'm looking for a macro to remove all words (in a single word per cell format) in a range (approx 100 columns & 7000 rows), except for a list of 100 words.
I'd prefer to email the file if that's okay.
View 7 Replies
View Related
Dec 13, 2006
my excel sheet runs through a lot of calculations, opens Flowmaster, a simulations program, passes on data, receivs data and so on. Is there any way to have a user input to stop the whole simulation. During the first tries I had a lot of break point in my debugger. But now I want to have a button to hit or better just some keys to hit to stop it without using the ctrl+alt+del which closes everything.
View 4 Replies
View Related
Dec 8, 2009
I'm if I can create a table of words that I want removed from a column.
For example:
Red Fast Cars
Red Slow Cars
Blue Fast Cars
Blue Slow Cars
Can I setup a VLOOKUP function to remove 'Red' and 'Blue'
I know I can create multiple work sheets and use Control + H, to remove words. But that entails a lot of cutting, pasting, and filtering. Plus this example is simple, I'll be using longer text strings AND some examples might need to have 3 words removed from the same string
View 14 Replies
View Related
Feb 15, 2008
I'm attempting to extract the Street Names from an Address.
For Example, if given "123 Very Big Street" I'd want to extract "Very Big".
If given, "123 Very Big" I'd want the same answer.
I've written code to do this, with a simple IF statement to identify mathcing last words like "Street" and "Drive".
How can I efficiently do this with a large list of last words? I'm drawing a blank on how to query against an array that would contain all these values.
View 12 Replies
View Related
Sep 1, 2006
I have a list of email addresses, about 2000 rows long. they are listed like so but in 1 cell Internet EMail Address: Jo.bloggs@avivagroup.com.au This is what is exactly in the cell, except different names. What I want to be able to do is run something to delete the Internet EMail Address: part but keep the actual address. The problem is its all in the one cell as stated
Any suggestions, list goes something like this
Internet EMail Address: Jo.bloggs@avivagroup.com.au
Internet EMail Address: Larry.holt@avivagroup.com.au
Internet EMail Address: matt.blank@avivagroup.com.au
Internet EMail Address: lance.legend@avivagroup.com.au
View 4 Replies
View Related
Mar 31, 2009
If I have ABC DEF in a1, is there a formula I can put in a2 to remove the space and display ABCDEF
View 2 Replies
View Related
Mar 26, 2009
I have a spreadsheet that I exported from my accounting software. For some reason there are 4 columns that all begin with an apostrophe and have various lengths of white space before the wording begins.
What kind of formula can I use to get rid of the apostrophe and have the wording be left aligned within the cell with no space before or after it?
The file I am working on is attached. They are columns C, D, E and F.
View 2 Replies
View Related
Dec 4, 2013
I need to remove only numbers from excel cell - I have tried using the "constant" function but did not work. I have thousands of cells with a consistent 4 digit number like this:
1000 the rest is text
How can I remove only numbers but leave all text in the cell and then if I can trim the cell so there are not any spaces at the beginning afte removing the numbers.
View 8 Replies
View Related
Oct 28, 2013
I have this macro currently running on an original excel document
Private Sub Workbook_Open()Dim fname
fname = "C:ackupEconomics Tracker - " & Format(Now, "dd mmm yy hh mm AM/PM") & ".xlsm"
ThisWorkbook.SaveCopyAs Filename:=fname
Sheets("Menu").Activate
End Sub
Which creates a backup of the document each time the document is opened; I was wondering, is it possible to remove that particular macro from the backup as opposed to saving the backup as .xlsx? I don't want to be able to open a backup and the backup makes a backup
That particular macro is running on the main workbook.
View 9 Replies
View Related
Jul 2, 2014
Write a multidimensional array.
I was able to write a OBject dictionary in a loop that removes dupes. During this build I did not take into account that I needed to restart the loop whenever the cell in column L is not the same as the next cell down.
Here is an example of my input Data:
Column L Column P
Row 1 9 10,500
Row 2 9 10,500
[Code]....
View 7 Replies
View Related
May 24, 2014
I have a excel 2003 template that loads a csv file and create a graph.What I am trying to do is remove the Workbook_open macro after it has been run so when they save the file it will not save the macro in the new file.
View 3 Replies
View Related
Oct 29, 2012
I'm working on a sheet with about 10,000 rows and 8 columns worth of data. Most of them are formatted as 12345,12345,12345,23456 how they are supposed to be, but some of them will have spaces inbetween each sequence, or some even a couple spaces, or spaces at the end. For the most part I can use the replacement function with ", " to "," but some of the double spaces throw it off, and end spaces also. Is there a macro that can just search through the selected cells I pick to just remove all spaces so the data falls back onto the commas?
Working in excel 2010
View 7 Replies
View Related
Mar 7, 2013
I am looking for a macro that will remove any rows exceeding 12 months. Each month new data is added in and I am looking to remove anything over 12 months with the new month is added.
View 6 Replies
View Related
Apr 28, 2014
I'm having a hard time making this maro work in Excel 2010.
I need it to filter out the items "AR", "BATCH", and the line of "Total:*" where the * is a total amount of any given number dependant on the day.
Below is the coding I have that Excel is not liking.
Sub FilterAccurateRawData()
'
' FilterAccurateRawData Macro
'
'
Rows("1:1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$AA$45415").AutoFilter Field:=1, Criteria1:=Array("<>AR", "<>BATCH", "<>Total:*")
Operator:=xlFilterValues
Sheets("Instructions").Select
Range("A9").Select
End Sub
View 3 Replies
View Related
Mar 18, 2014
I am my excel worksheet (excel 2010) I have one cell that changes every day (number). I want this number to open my htm document and replace the same number in a string in the htm and save/close this.
An example:
My htm document is located at C:/ and named XX.htm
The number I want from excel is in cell A1 in sheet1, and the worksheet is located in D:/ named yy.xlsx
And the text(number) I want to replace is in the following string in the htm document, in this string it is 72, next day it can be 30:
src="Bilder/72.png"
View 8 Replies
View Related
Mar 7, 2012
I need to find from the second word until just before a numeric number.
Thus the text in Column H is as follow:
COLUMN H
1234234 My name is John 12 Jul
34243 I am 10 years old 23 Feb
4345345 Peter 23 Jan
So, I need the text in RED extracted only. All words are seperated by spaces. It will always start from the second word and continues until it finds the first number. All words between these must be extracted.
My formula below is to extract the 1st Word, thus all I need is the formula for the above situation and replace the one below with it.
a.Formula = "=Left(h2,find("" "",h2)-1)"
View 9 Replies
View Related
Apr 9, 2008
Do any formulas can converts text to an anothers words ?
sample : if any words to ( LA CA LN & TN ) than Change to "USA"
Col: A will have the abnormal text .
Col: B want to consolidate that's to "US" if match with the certeria /
View 9 Replies
View Related
May 27, 2013
I am trying to search words that are in column A (5 letter combinations of sequences) within the text in column B (amino acid sequence).
So I am stumbling upon 2 questions:
- what is the function that would do this search.
- how to acchieve to reverse the text in B1 cell (eg. abcde --> edcba , but with 600 letters),
sample file: test.xlsx
View 4 Replies
View Related
Mar 17, 2008
I have a column that is filled with text of varying lengths and I'd like to search through each cell in that column looking for a specific word or words. Unfortunately the length of the text varys greatly between each cell and there is very little uniformity so I need to be able to search through the entire entry in each cell and then highlight that row if a specific word or words are found.
I'd also like to be able to add a number "1" in another column on the same row if the search finds a word or words. Any help would be greatly appreciated.
If the cell only contains the exact word or string I'm looking for then it's easy but I can't figure out how to search through text in a cell that contains more than I'm looking for.
example: Lets say I'm loooking for "caught fire"
column Q contains:
1 "The computer caught fire after several hours"
2 "A house on the hill caught fire"
If "caught fire" exists in the cell being checked, then highlight the row and put a 1 in a specific column, lets say J.
View 14 Replies
View Related
May 28, 2014
How can i find the first 15 letters or numbers in a text string "material change:"
or find ":" then display everything to the left of that symbol ?
assume formula in a1 and test string in b1.
I wish there was a class you could take on this stuff.
View 9 Replies
View Related
Jul 24, 2007
What formula should I use to search a certain text that might be on the beginning, middle or end of a cell to use it as a condition for an IF formula to return a related description. In the example below the text would be "deposit".
View 2 Replies
View Related
Sep 7, 2007
I would like to know if I can do a VBA code that takes one formule that is showed as text in one cell (eg '=wood+plastic) to the next cell to really use it... I mean, that one time we define de "wood" valeu and plastic valeu will realize the calcul.
View 9 Replies
View Related
Apr 23, 2008
I'm trying to figure out how to generate all combinations from a list
of N values in a column, let's say column A. In particular, I want to have all combinations of 2 values, 3 values, 4, ... up to 7 values. To give an example: Let's assume I have a list of only 3 values (1,2,3) for which I want to have all combinations of two values. In this case, the result would be 1,2; 1,3; and 2;3. The ordering of the values does not matter, i.e. duplicates should be eliminated.
View 4 Replies
View Related