Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
Criscristina92 Profile
Femeie
25 ani
Bucuresti
cauta Barbat
29 - 80 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [EXCEL] Delete multiple blank / empty rows or rows containing strings Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
Source:


1. First, before you make any drastic changes to any workbook always make sure you have a backup copy or a recently saved copy in case you need to restore the original data.
2. Now, select the cells in one column from the top of your list to the bottom.
3. Make sure that all the blank cells in this selected range are the rows you want to delete.
4. Press the F5 key on your keyboard (or select Edit, Goto).
5. Click the Special... button.
6. Click the Blanks option and click OK. This will select all blank cells in the range you had previously selected.
7. Now choose Edit, Delete, select the Entire Row option and click OK.
Instead of Edit, Delete (you can click CTRL and -)


_______________________________________


pus acum 9 ani
   
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
Source:

How to Remove all Rows Containing Certain Data

1. Select all of your data, including the data you wish to remove.

2. Press Ctrl F to open the Find and Replace dialog.

3. Type the text that is contained in the rows you wish to delete. For example if you need to delete rows with someone’s name, type that name in.

4. Click the Find All button. This will show a list of all cells containing the data you searched for below the search box.

Important note: if the text you are looking for is the result of a formula (eg. the word FALSE returned from an IF formula), then before pressing Find All, under Look in dropdown select Values.

5. Click on one of the results that appear below the search box, then press Ctrl A. All results should be highlighted now. Also, if you notice on your spreadsheet, each cell containing what you searched for will be selected.

6. Click the Close button on the Find and Replace window.

7. Press Ctrl and minus key to open the Delete window.

8. Select the Entire Row option, and press the OK button.

Remove Certain Rows Containing Certain Data with VBA


Sub Delete_All_Rows_IF_Cell_Contains_Certain_String_Text()
    Dim lRow As Long
    Dim iCntr As Long
    lRow = 1000
    For iCntr = lRow To 1 Step -1
        If Cells(iCntr, 3).Value = "Certain data to delete here" Then
            Rows(iCntr).Delete
        End If
    Next
End Sub


Number “3” in the ‘If Cells (iCntr, 3).Value represents the third column (C)
lRow = 1000 means it will check the first 1000 rows.


_______________________________________


pus acum 4 ani
   
Pagini: 1  

Mergi la