Another newbie here. I know this maybe very easy but I'd like to see the sample code for this summary for a table of data. For the sample data I attached, I'd like to automatically create a summary which the output should look like the one on the Summary Sheet. If I run the procedure, It will create the dates I specified for the summary as well as the data found in it.
Thank you so much md. I know this maybe too much but id like to create a vba code for this. Can you help? I've tried to create it but am having a hard time due to inexperience. Appreciate anything that could get me rolling with this. Thanks
[vba]Sub Summary()
Dim wsSrce As Worksheet, wsSumm As Worksheet
Dim n As Range, Nms As Range, Dts As Range
Dim r As Range
Set wsSrce = Sheets("Source")
Set wsSumm = Sheets("Summary")
With wsSrce
Set n = .Cells(Rows.Count, 1).End(xlUp)
Set Nms = Range(n, n.End(xlUp))
Set Dts = Range(.Cells(2, 2), .Cells(2, Columns.Count).End(xlToLeft))
End With
With wsSumm
.Cells(1, 1) = "Late"
.Cells(3, 1) = "Names"
.Cells(2, 2) = "Date"
Set r = .Cells(4, 1).Resize(Nms.Count)
r.Value = Nms.Value
For Each cel In Dts
If IsDate(cel) Then
i = i + 1
.Cells(3, 1).Offset(, i) = cel.Value
End If
Next
Set r = r.Offset(, 1).Resize(, i)