Hello,
I am an absolutely newbie in VBA. I don't know if this fix your problem. Anyway try this in a Copy of your workbook
Sub FirstDay()
Dim LastRowR As Long, Length As Long
LastRow = Range("B" & Rows.Count).End(xlUp).Row
Application.ScreenUpdating = False
Range("A:A").ClearContents
Range("A1") = "Concatenated" 'Change A1 to the header cell
For Length = 2 To LastRow 'Change 2 to the first starting row
If IsDate(Cells(Length, "B")) Then
Cells(Length, "A").Value = Format(Cells(Length, "B") - Day(Cells(Length, "B")) + 1, "m/d/yyyy")
End If
Next Length
Application.ScreenUpdating = True
End Sub
Bookmarks