Hi,
You could try something like this
I see it doesn't with the format "dd-mmm-yy"Code:Sub kTest() Dim rngDate As Range Dim CountDate As Long Set rngDate = Range("a2:a" & Range("a" & Rows.Count).End(3).Row) With rngDate .Offset(, 1).EntireColumn.Insert .Offset(, 1).FormulaR1C1 = "=cell(""format"",rc[-1])" CountDate = Application.WorksheetFunction.CountIf(.Offset(, 1), "D*") .Offset(, 1).EntireColumn.Delete End With End Sub




Reply With Quote

Bookmarks