Hi, i have a spreadsheet with 100's of rows of data.
I have found a piece of code that removes text from a cell after the symbol ">" which is as follows:
Sub test()
Dim x As String
With ActiveSheet.UsedRange
x = .Address
.Value = Evaluate("if(" & x & "<>"""",if(isnumber(find("">""," & x _
& ")),left(" & x & ",find("">""," & x & ")-1)," & x & "),"""")")
End With
End Sub
What i require is a slight modification so that it removes all text in the cell onwards from the word "is" - eg.
This is what the cell contains:
Windows Service SurfControl Web Filter Version 5.5 Service Pack 2 Service is Up
I require the following to be displayed:
Windows Service SurfControl Web Filter Version 5.5 Service Pack 2 Service
The reason i want the deletion from the word "is" because there are many different phrases that the cell contains after the word 'is' - e.g. is Up, is Down, is Critical etc etc..
Of course a find and replace option isnt suitable due to the volume of data. A piece of code is ideal so that it can be linked to a macro.
Any advice?
Bookmarks