Worksheets(inZaehler).Range("a1:f6"), 14)Sub neu()
Dim wsTabelle As Worksheet
Dim raZelle As Range
Dim inZeile As Integer
Dim inSpalte As Integer
For inSpalte = 2 To 6
For inZeile = 2 To 6
For Each wsTabelle In ThisWorkbook.Worksheets
If wsTabelle.Name <> "Zusammenfassung" Then
Set raZelle = wsTabelle.Range("A1:F6").Find(Worksheets("Zusammenfassung").Cells(inZeile, 1), lookat:=xlPart)
If Not raZelle Is Nothing Then
doSumme = doSumme + wsTabelle.Cells(raZelle.Row, inSpalte)
End If
End If
Next wsTabelle
Worksheets("Zusammenfassung").Cells(inZeile, inSpalte) = doSumme
doSumme = 0
Set raZelle = Nothing
Next inZeile
Next inSpalte
End Sub
Sub gesamt_je_ps()
Dim wsTabelle As Worksheet
Dim raZelle As Range
Dim raZelle2 As Range
Dim inZeile As Integer
Dim inSpalte As Integer
Application.ScreenUpdating = False
With Worksheets("Zusammenfassung")
For inSpalte = 2 To IIf(IsEmpty(.Cells(1, Columns.Count)), Cells(1, .Columns.Count).End(xlToLeft).Column, .Columns.Count)
For inZeile = 2 To 6
For Each wsTabelle In ThisWorkbook.Worksheets
If wsTabelle.Name <> "Zusammenfassung" Then
Set raZelle = wsTabelle.Range("A1:F6").Find(.Cells(inZeile, 1), lookat:=xlWhole)
If Not raZelle Is Nothing Then
Set raZelle2 = wsTabelle.Range("B1:F1").Find("PS " & Mid(.Cells(1, inSpalte), InStr(.Cells(1, inSpalte), " ") + 1), lookat:=xlWhole)
If Not raZelle2 Is Nothing Then
doSumme = doSumme + wsTabelle.Cells(raZelle.Row, raZelle2.Column)
End If
End If
End If
Next wsTabelle
.Cells(inZeile, inSpalte) = doSumme
doSumme = 0
Set raZelle = Nothing
Set raZelle2 = Nothing
Next inZeile
Next inSpalte
End With
Application.ScreenUpdating = True
End Sub
Wenn-Formel
JoeKe 25.10.2006 - 15888 Hits - 3 Antworten
Makros - zweiten Drucker als Symbol in die Symbolleiste einfügen
Mikoop 24.11.2006 - 4092 Hits - 1 Antwort
Anfangswert in einer Formel in Excel setzen ?
Evillocutus 21.05.2007 - 67 Hits - 10 Antworten
summewenn Formel mit 2 Bedingungen
JKL 21.08.2007 - 246 Hits - 4 Antworten