Prueba esta macro es dinámica se adapta a los datos si quitas o añades datos la naxro se adaptara a estos cambios.
Sub ESTADISTICAS()
Set DATOS = Range("A2").CurrentRegion
With DATOS
Set DATOS = .Rows(2).Resize(.Rows.Count - 1)
.Rows(.Rows.Count + 3).Formula = "=SUM(" & .Columns(1).Address(False, False) & ")"
.Cells(.Rows.Count + 2, 1) = "NO. REGISTROS"
.Cells(.Rows.Count + 2, 1).Font.Bold = True
.Cells(.Rows.Count + 3, 2) = .Rows.Count
Set DATOS = .Columns(3)
Set CANTIDADES = .Columns(.Columns.Count + 2).CurrentRegion
End With
With CANTIDADES
Set CANTIDADES = .Rows(2).Resize(.Rows.Count - 1)
.Cells(.Rows.Count + 2, 1) = "NO. REGISTROS"
.Cells(.Rows.Count + 2, 1).Font.Bold = True
.Rows(.Rows.Count + 3).Formula = "=SUM(" & .Columns(1).Address(False, False) & ")"
Set TOTALES = .Columns(.Columns.Count + 2).CurrentRegion
End With
With TOTALES
Set TOTALES = .Rows(2).Resize(CANTIDADES.Rows.Count, 2)
.ClearContents
.Columns(1).Formula = "=SUM(" & CANTIDADES.Rows(1).Address(False, False) & ")" & "+" & _
DATOS.Cells(1, 1).Address(False, False)
SUMA = WorksheetFunction.Sum(.Columns(1))
.Columns(2).Formula = "=" & .Cells(1, 1).Address(False, False) & "/" & SUMA
.Cells(.Rows.Count + 2, 1) = "NO. REGISTROS"
.Cells(.Rows.Count + 2, 1).Font.Bold = True
.Rows(.Rows.Count + 3).Formula = "=SUM(" & .Columns(1).Address(False, False) & ")"
End With
End Sub