Hi Basavaraj,
You can follow the following four steps to do the same:
Step1:
A.Run the following macro to delete the blank cells:
Sub delblanks()
Dim i As Integer
For i = 1 To 265
If Range("A" & (i)).Value = "" Then
Range("A" & (i)).Select
Selection.EntireRow.Delete
End If
Next i
End Sub
However you can excecute this step without using macro as well. To do this, you need to press Ctrl+G from your key board,the "Go To" dialog box will open, then you need to click the button "Special", select "Blanks" from "Go To Special" dialog box and hit Ok, then you will get to see that the blank rows are highlighted, then you need to press "Ctrl+ 'minus(-)' sign from your key board, the "delete" dialog box will open, then you need to select entire row option and hit "ok", the blank rows will be deleted.
But, by both of these techniques, you will see that some of the blank rows still remain there.The reason being, each of those rows contain double spaces in them which you need to tackle by following the below mentioned step.
Step2:
i) select the entire column "A"
ii)Hit Ctrl+H from your key board to open the 'Find and Replace' dialog box
III)Place the cursor in 'Find What' part and prees 'space bar' for two times from your key board; and then place the cursor in 'Replace with' part and hit the 'replace all' button. Then you will get to see that excel will make 57 replacements for you (according to your data).
Note: In this way you are basically, removing double spaces from 57 remaining blank rows.
Step 3:
Again run the same macro (or follow the excel based process by going to "Go To Special" dialog box) to delete the remaining blank rows
Step4:
Finally,you filter column A, select your desired items(which want to delete, hit Ok button. Then again go to "Go to Special" dialog box, select "Visible Cells Only", hit ok,then you need to press "Ctrl+ 'minus(-)' sign from your key board (as you did earlier), the "delete" dialog box will open, then you need to select entire row and hit "ok", the selected items will be deleted. Finally remove the filter to check everything is fine.(In case you find any further bank rows, just run the same macro once again to take care of it)
The entire process may sounds little complecated. But once you follow the steps, you can finish it off within 3 to 4 minutes.
Let me knkow if you need any further help.
Regrds,
Kaushik