Hallo Karin ich habe es so versucht und es scheint zu funktionieren. Vielen dank
Sub FormelnEintragen()
Dim lngLetzte As Long
lngLetzte = IIf(IsEmpty(Cells(Rows.Count, 1)), Cells(Rows.Count, 1).End(xlUp).Row, Rows.Count)
Cells(2, 8).Formula = "=IF(COUNTIF($I$2:I2,I2)=1,COUNTIF(I:I,I2),"""")"
Cells(2, 9).Formula = "=IF(B2="""","""",B2&"" ""&C2&"" ""&E2)"
Range("i2:H2").AutoFill Destination:=Range(Cells(2, 8), Cells(lngLetzte, 9)), Type:=xlFillDefault
With Range("j2:J2")
.HorizontalAlignment = xlCenter
.Interior.Color = 13750737
With .Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Color = 11184814
.Weight = xlThin
End With
.AutoFill Destination:=Range(Cells(2, 10), Cells(lngLetzte, 10)), Type:=xlFillFormats
End With
End Sub