I have four specific partial texts I require to separate from each other and then specify what they are on top, then provide a count and sum below. My current sub provides me with the first part. I have them separated and the header with font change, however I cannot find any method that works in application to my problem anywhere online and I need to count the (in this instance) number of items that contain "DPC" in column B and then next to this provide the sum total in the same row in column C.
Sub FontBoldItalicAndSumOnlineBankTransfers()
Dim MyRange As Range
Set MyRange = ActiveSheet.Range("A:N")
MyRange.Find("DPC", LookIn:=xlValues).Select
ActiveCell.Offset(RowOffset:=-1).Activate
ActiveCell = "Online Bank Transfers": Selection.Font.FontStyle = "Bold Italic"
NextFree = Range("B5:B" & Rows.Count).Cells.SpecialCells(xlCellTypeBlanks).Row
Range("B" & NextFree).Select
End Sub