Sir,
Thanks for the suggestion. Could you please tell me how to encode the same process into this macro. As i have to deal with many excel sheets iam looking for a vba.
Option Explicit
Sub ReformatData()
Dim delRng As Range, LR As Long, Rw As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For Rw = 1 To LR
If Left(Range("C" & Rw), 3) = "---" Or IsEmpty(Range("C" & Rw)) Then
If delRng Is Nothing Then
Set delRng = Range("C" & Rw)
Else
Set delRng = Union(delRng, Range("C" & Rw))
End If
End If
Next Rw
If Not delRng Is Nothing Then delRng.EntireRow.Delete xlShiftUp
Columns.AutoFit
Range("A1").CurrentRegion.Sort Range("A2"), xlAscending, Header:=xlYes
End Sub
Thank you
Bookmarks