Delete Cells Containing Specified Text

Dec 19, 2006

I need search and clean the entire cell, with the word "MENOR". (in english is Minor). The problem is: The cells can contain the word "es Menor" or "Menor de edad" (the macro is in spanish) in english is "is minor" ". "You are a minor"...(I try but my english is not very good,)

View 4 Replies


ADVERTISEMENT

Compare Two Cells And Delete Row If Text Is True?

Apr 6, 2014

Find the attached : example.xlsx‎

My requirement is compare two cells a1 & a2 if found true highlight a2,compare a2 & a3 if found same highlight a3 or compare a3 and a4 and repeat the same for the entire sheet.

View 1 Replies View Related

Check Text In Cells And Delete And Add Column Accordingly

Nov 1, 2009

I receive thousands of raw data every week as shown in the excel sheet {raw data}

I would like to use a macro that could automatically sort the raw data like the format in the excel sheet {template}

For example:

Looking at the raw data and compare with the template, i would have to delete the whole columns that have (BU_CODE , EAN_CODE, SUPPLIER_CODE, SUPPLIER_NAME , BRAND_NAME, and SUB_CATEGORY_CODE) and add in columns and name it as Principal, Cateogry , Brand and range).

View 7 Replies View Related

Delete All Numbers Like: #####-## From Text Strings In Cells

Jun 23, 2008

I need to remove multiple instances of pages numbers from a 2000 character text string I have dumped into a cell. The spacing is not equal between the page numbers but they always take the form |#####-##| i.e. bar delimited 5 digit-2 digit. I tried SUBSTITUTE but it will not accept wildcards. I was thinking of looping through a SEARCH. The numbers are ordered ie |00001-01| to |00001-25| then |00002-01| etc, stopping at 25. This might lend to looping but I couldn't wrap my head around the VBA to accomplish that. A sample of the text

"|00006-01| (Defendants' Exhibit Nos. 1,2 marked for |00006-02| Identification.) |00006-03| BY MR. JOHNSON: |00006-04| Q. Doctor, I am handing you Exhibits 1 and 2. |00006-05| Exhibit 2, is that the one that you brought with you, |00006-06| the deposition notice of today? |00006-07| A. I believe so, yes." Auto Merged Post Until 24 Hrs Passes;I should have said this before but this is for use on Excel 2003 WinXP.

View 8 Replies View Related

Delete Text In Cells Leaving Only Numbers

Jun 25, 2008

i m creating a macro to delete extra characters in a column. I have over 200,000.00 records in one column which consists of numbers with characters. For example:

#80723666
-80726960
80730187--
/ 80730279
80736277 /
( )80739210
* 80739823
& 80735380
80796440 @
## 80722138

if anybody can come up with a macro, so that I can just have the numbers and nothing else. I would like to exclude the following -~!@#$%^&*()_=+?/.";:|][{},^` within a cell.

View 4 Replies View Related

Formula Or Code To Delete Cells If No Text Entered Inside Them

Jul 29, 2013

I am making a buiness card request form, which I have attached. On the Master Sheet (Sheet 1), the user enters in his/her personal data, such as his name address, phone number, etc. After he/she finished entering all the relevant data, Business Card Layout (Sheet 2) automatically populates and shows the user what their business card will look like.

Everything works fine, however I just realized that the contact information might vary from person to person. Right now, a person can enter 5 different contact information, but most of them will probably only choose four.

I wanted to know how to shift the cells down if the user does not fill out one of the contact information.

View 2 Replies View Related

Excel 2010 :: Macro To Delete Text From Cells And Leave Dates

Apr 27, 2012

I am using Excel 2010 and I need a macro to delete all text from cells and leave the dates.

Below is an example of the contents of six cells. Some have just text, but some have text and dates.

1st Time Attender: 4/8/20121st Time Attender:1st Time Attender: 4/5/20122nd Time Attender:2nd Time Attender: 4/8/20122nd Time Attender: 4/5/2012

In this example, I would want the new cell contents to be:

4/8/2012

4/5/2012

4/8/2012
4/5/2012

View 1 Replies View Related

Delete All Text Which Is Not 'bold' In Cells With 'mingled Bold' Text

Jan 23, 2010

I want to have a function or macro that if cells have mingled bold text, that only the bold text shall remain in the cells, and all the rest of the text must be deleted.

View 4 Replies View Related

Search For Text Delete This Row And Delete The Row For Every Instance

Apr 29, 2008

I have an formula if statement that returns "deletethisrow" if the test is true.

For every occurence of "deletethisrow" I want to delete the row. The number instances will be variable each time I run the file. So maybe it will find that string, maybe it will find 10 instances. I want to do some kind of loop that won't error out when it cannot find "deletethisrow", but will delete the rows for each instance where it does find this string.

I know it was verbose, but if I just do a loop for a fixed number of loops it will error out if it runs out of rows to delete.

View 9 Replies View Related

Analyze Cells Of Text-return Defined Text Phrase If All Cells Have Same Text

Apr 30, 2014

I have 10 cells in a column. I have a drop down list in each that is the same in each. If all 10 cells have the same item selected from the drop down list, I want a separate cell to list Yes or No. I've tried a few variations with no luck.

View 4 Replies View Related

Delete Row If Cell Contains Certain Text As Part Of Text String?

May 15, 2014

I have a column of data with letters in each cell, no numerical, only alpha. Now, some of those cells contain the letters "adj sub" as part of the text string in each cell. "Adj sub" is always at the beginning of the text string. As an example, a cell will look like this - "adj sub mhm". I want to delete rows whose cell description does not contain "adj sub" as part of the text in the cell.

View 5 Replies View Related

Is There A Way To Partially Delete Text?

Mar 10, 2009

I've got a long sheet that I imported that contains a column consisting of a URL - something like this for an example:

http://www.example.com/images/imageone.jpg
http://www.example.com/images/imagetwo.jpg
http://www.example.com/images/imagethree.jpg

Is there a formula that I can use to strip off the ...

View 6 Replies View Related

Search For Certain Text, Then Delete The Row, Plus Others

Jul 9, 2009

Here is what Im trying to do: I have a VERY large excel file (15,000+ lines) that has groups of text (this is all in one column)

I want excel to search for the cells with "UID" and delete that row plus every non-blank row above it. (so it deletes the entire "group") Here is example layout of what Im working with. The end result should be only "groups" without the text "UID" following it.

ExampleCell1
ExampleCell2
ExampleCell3
UID = example

ExampleCell1
ExampleCell2
ExampleCell3

ExampleCell1
ExampleCell2
ExampleCell3
UID = example

Now Im thinking this may be impossible, but I've seen some crazy things done with excel macros and was really hoping someone can help me out. Otherwise Im doing this manually for 15,000 lines of text.

View 9 Replies View Related

Delete All First, Second Or Third Characters Of Text

Dec 28, 2005

"Is there some VBA code which could delete all first, second or third
characters of a text? Could it be done to the three last characters
from this same text and these be displayed on reverse order?"

Example:
AAAASAHDASK
AAASAHDASK
AASAHDASK
ASAHDASK
SADHASAAAA
ADHASAAAA
DHASAAAA

View 14 Replies View Related

Text - Delete Everything To The Right Of First Two Characters

Oct 20, 2012

From the names listed in column A, in the table listed below, I wish to delete everything

to the right of the first two characters.

So the new column A would look this.

A

1
E HAZARD

2
F LAMPARD

3
F MALOUDA

[code].....

View 9 Replies View Related

Delete Text After Comma

Apr 7, 2013

solve this thing.

how can I delete text after a comma.

from this 638264,1 to 638264

another question. this "&" is to join two or more cells. what is the opposite of that function?

A
B
C

1
8768,1
,1
8768

2
1683,34
,34
1683

A-B=C

View 7 Replies View Related

Delete Rows With No Text?

Oct 25, 2013

I'm trying to write a line of code in my VBA macro that goes through all of column B and if there is text in the column to go to the next cell down and if there is no text to delete the entire row. I have the bricks I just cant build the house. I need the macro to do this for rows 8 to 500.

View 5 Replies View Related

Delete Rows Which Do Not Contain Certain Text

Feb 21, 2008

I have a spreadsheet which is created 2/3 times daily and I need a macro to do the following;

The columns are A To AJ, I need to delete all columns with the exception of columns M, N, R

Column M contains currency (GBP, Euro)
Column N contains dates
Column R contains various agent log ins, such as LI111222AB, LI222111JM, IFCTest & HOTAYLORL

The row number can vary (Average 1,000), I need to delete all rows that do not contain a log in which begins with LI in column R

Once this is done, subtotal by column R (agent log in), column N, & column M

View 9 Replies View Related

Delete The Entire Row That Has The Text Pc.

Sep 18, 2008

I use the code below to delete the entire row that has the Text "Pc." in it. How can I make this delete the row with "Pc." plus the next row?

Sub PL()
Dim i As Long

For i = Cells(Rows.Count, "A").End(xlUp).Row To 1 Step -1
If InStr(Cells(i, "A").Text, "Pc.") Then
Cells(i, "A").EntireRow.Delete
End If
Next i

End Sub

View 9 Replies View Related

Delete Rows Without Specified Text

Jun 27, 2007

What i'd like is a macro that will delete all cells that don't contain the word pagelibrary somewhere in the cell. As these are weblogs, pagelibrary can be in many different places in the link due to redirects etc, so the macro would have to be flexible with that word. All cells are only one column, in column A. Also if it is possible to delete everything before the word pagelibrary that would be helpful as well as some of these links are very long (and possibly duplicates due to capitalization and redirects).

I've done some searching and this code is the code that closest matches what I want to do. I am by no means a VBA expert; I can decipher a little of what code does, I just can't write it .

Sub DeleteRowEqualTo()
‘Hold Shift Key To delete rows Not equal To

Application. ScreenUpdating = False
Dim currentRow As Long
Dim lastRow As Long
Dim activeColumn As Long

Dim activeValue As String
Dim currentValue As String

lastRow = ActiveSheet.Cells.SpecialCells(xlLastCell).Row
activeColumn = ActiveCell.Column

activeValue = ActiveCell.value ................................

View 9 Replies View Related

Delete Rows Containing Text

Aug 9, 2007

I am trying to write a code that would remove rows with any sort of letters in them. I have looked up other ways of deleting rows, but I cannot find the script that would encompass all (alphabetical) letters.

View 9 Replies View Related

To Delete All Rows Without Specific Text

May 7, 2013

I need a macro in excel which work like that "To delete all rows without specific text". and following macro for this;

What I need in this is that i have more than one values (highlighted with red in formula) so how i will do in this?

Sub DeleteRows()
Dim lRow As Long
Dim lLastRow As Long

'Change "A" to suit
lLastRow = Cells(Rows.Count, "A").End(xlUp).Row

[Code] .....

View 3 Replies View Related

Can't Delete Text Box Or Radio Buttons?

Feb 22, 2013

I have inherited a spreadsheet that has a text box and a radio form that I cannot delete for the life of me. I can't click to select either one nor right click to do anything. I have an "Approve" and "Reject" button on top of them and those work great. But how do I delete the others?

View 1 Replies View Related

Delete Row Based On Cell Text?

May 26, 2014

I need a code to delete all rows with "Complete" in Column D below Row 7.

View 2 Replies View Related

Delete Extra Spaces After Text

Jun 20, 2014

Please refer to attached file.

Column A have data and i need VB Code (Not formula) to check each cell in column A and delete any spaces and make sure that there is no spaces after end of the text.

As an example you can see Cell cell A15 thru A22 have spaces after the text so need to delete those spaces

Book1.xlsx‎

View 3 Replies View Related

VBA To Delete Part Of Text String

Aug 15, 2014

I am trying to delete part of a text string for a range of cells. The code I have so far deletes the first set of letters but is looking in every cell in the range.

Ideally I would like it to only look in the cells of col B where there is data then only delete the first 10 letters if the cell begins with "Service ID"

Sub DeleteServiceID()
Dim c As Range
For Each c In Range("B1:B1000")
c.Value = Right(c.Value, 10)
Next c
End Sub

View 4 Replies View Related

Delete Whole Column If 1:20 Contains Any One Of 5 Pieces Of Text

Sep 28, 2008

i would like to be able to use a macro that will delete all columns in the sheet that do not contain one of 5 pieces of text in cells 1 to 20.

It is driving me mad, i have managed to find macros that delete empty columns, but they do not remove the columns that do not contain any of the 5 words. often the cells are empty down to row 5, when the data starts

View 6 Replies View Related

Macro To Delete Rows Containing Certain Text

Jan 15, 2009

I have put together a macro that will delete rows (called DeleteUnwantedRows) in a spreadsheet that contain the phrases "no further action" and "not applicable" ... However the macro does not appear to be working.

View 2 Replies View Related

Delete The Whole Row If Any Cell In A Certain Column Has Certain Text

Jul 1, 2009

Note: The "Bread Type" column will ALWAYS be in row 1, BUT will ALWAYS be in a different column letter, so I would like this macro to find the "Bread Type" column by name rather than by column number. All criteria should NOT be case sensitive.

In the example below, rows 2, 4 & 5, have the text "Wheat" or "Rye" in the "Bread Type" column, therefore, all 3 of these entire rows should be deleted. Yes, I do mean the ENTIRE row, wipe these rows off the face of the earth

View 14 Replies View Related

Delete A Whole Row If Text Appears In A Cell

Aug 14, 2009

I have a long spreadsheet and want to remove rows of information from it if cells contain a specific word. If the cell in column A contains the word "district" or "borough" anywhere in the string of text and irrespective of the case I need to delete the whole row.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved